public class XmlSerializer extends Object
Constructor and Description |
---|
XmlSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
asText(DomNode node) |
String |
asXml(DomElement node) |
protected Map<String,DomAttr> |
getAttributesFor(HtmlImage image) |
protected Map<String,DomAttr> |
getAttributesFor(HtmlLink link) |
protected boolean |
isExcluded(DomElement element) |
protected void |
printOpeningTag(DomElement node)
Prints the content between "<" and ">" (or "/>") in the output of the tag name
and its attributes in XML format.
|
protected void |
printText(DomNode node)
Prints the text content from this node and all children.
|
protected void |
printXml(DomElement node) |
void |
save(SgmlPage page,
File file) |
public void save(SgmlPage page, File file) throws IOException
IOException
public String asXml(DomElement node) throws IOException
node
- a nodeIOException
- in case of problem saving resourcesprotected void printXml(DomElement node) throws IOException
IOException
public String asText(DomNode node)
node
- a nodeprotected void printText(DomNode node)
node
- the nodeprotected void printOpeningTag(DomElement node) throws IOException
node
- the node whose opening tag is to be printedIOException
- in case of problem saving resourcesprotected Map<String,DomAttr> getAttributesFor(HtmlLink link) throws IOException
link
- the link to get the attributes fromIOException
- in case of errorprotected Map<String,DomAttr> getAttributesFor(HtmlImage image)
image
- the image to get the attributes fromprotected boolean isExcluded(DomElement element)
element
- the element to checkCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.