simpleExtensionElement = element * - atom:* { text } structuredExtensionElement = element * - atom:* { (attribute * { text }+, (text|anyElement)*) | (attribute * { text }*, (text?, anyElement+, (text|anyElement)*)) }
16261627162816291630163116321633163416351636
feedAttrs.add(feedDoc.getAtomBase()); feedAttrs.add(feedDoc.getLangEn()); feedAttrs.addAll(extAttrs); List<Extension> extensions = new LinkedList<Extension>(); Extension extension = feedDoc.buildExtension("xhtml:div", null, "<span style='color:red;'>hello there</span>"); extensions.add(extension); List<Author> authors = new LinkedList<Author>(); authors.add(feedDoc.buildAuthor(feedDoc.buildName("Bill Brown"),
2040204120422043204420452046204720482049205020512052
BufferedWriter out = new BufferedWriter(new FileWriter( "target/extension.xml")); out.write(ent.toString()); out.flush(); out.close(); Extension ext = ent.getExtension("local:element"); assertNotNull(ext); Attribute attr = ext.getAttribute("xmlns:local"); assertNotNull(attr); FeedWriter feedWriter2 = new FeedWriter(); XMLStreamWriter writer2 = XMLOutputFactory.newInstance() .createXMLStreamWriter(