This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="OpenSocialGadget OAuth2 sample"> | |
<OAuth2> | |
<Service name="[service_name]"> | |
<Authorization url="https://.../authorize"/> | |
<Token url="https://.../oauth2/token"/> | |
</Service> | |
</OAuth2> | |
<Require feature="oauthpopup" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DOMパーサーはxercesを使う | |
DOMParser parser = new DOMParser(new HTMLConfiguration()); | |
parser.setFeature("http://cyberneko.org/html/features/balance-tags", false); | |
parser.setFeature("http://cyberneko.org/html/features/balance-tags/document-fragment", true); parser.setFeature("http://cyberneko.org/html/features/balance-tags/ignore-outside-content", true);parser.setFeature("http://cyberneko.org/html/features/scanner/notify-builtin-refs", true); | |
parser.setProperty("http://cyberneko.org/html/properties/names/elems", "match"); | |
parser.setProperty("http://cyberneko.org/html/properties/names/attrs", "no-change"); | |
parser.setProperty("http://cyberneko.org/html/properties/default-encoding", "UTF-8"); | |
parser.parse(new InputSource(new StringReader(layout))); | |
Document doc = parser.getDocument(); |