DOM(Document object model) :
DOM namespace contains classes using which we can parse or generate XML content. DOM anme space contains following classes.
1. Document
2. XM Node
Document:
This is a predefined class defined in the DOM name space using which we can process body of an XML document.
Syntax :
DOM.document xmldoc = new DOM.document();
Methods in Document class :
1. createRootElement(name, namespace, prefix)
2. getRootElement()
3.load(xml)
4.toXmlString()
1. createRootElement(name, namespace, prefix) : creates the top-level root element for a document.
signature :
public Dom.XmlNode createRootElement(String name, String namespace, String prefix)
DOM namespace contains classes using which we can parse or generate XML content. DOM anme space contains following classes.
1. Document
2. XM Node
Document:
This is a predefined class defined in the DOM name space using which we can process body of an XML document.
Syntax :
DOM.document xmldoc = new DOM.document();
Methods in Document class :
1. createRootElement(name, namespace, prefix)
2. getRootElement()
3.load(xml)
4.toXmlString()
1. createRootElement(name, namespace, prefix) : creates the top-level root element for a document.
signature :
public Dom.XmlNode createRootElement(String name, String namespace, String prefix)
No comments:
Post a Comment