|
|
||||||||
|
||||||||
|
||||||||
|
|
Code Barn Xml
|
| Code Examples | Description |
| ByteArrayToDocument | How to parse a byte array of XML into a DOM Document object |
| DocumentToByteArray | How to get a byte array of a given DOM object |
| DocumentToString | How to get a string representation of a given DOM object |
| StringToDocument | How to parse a string of XML into a DOM Document object |
| GetElementValueByNameUsingDom | How to retrieve the element value from a DOM Document object given the element name |
| HowToPrettyPrintXmlWithJava | |
| HowToPrettyPrintXmlWithXsl | |
| HowToValidateXmlAgainstSchema | Specific to the Xerces parser |
| HowToValidateXmlAgainstAnySchema | Using JAXP; also works for DTD and Relax-NG schemas |
| SAXCreateXPath | Code that uses the SAX API to create XPath expressions for each element encountered in an XML file |