Jdom notes

xiaoxiao2021-03-06  20

JDOM

Read XML

1

SAXBUILDER, build workers, creating XML people Document, must be built, instructions the file address XMLOUTPUTTER XML output, determine what format, you must specify a document, and you must specify the output form, such as a console.

2

ELEMENT corresponds to an element in XML. Document can first get the root element from one element to get one or more of its child elements

3

The local creature of the document is a group of Content descendants, which is hidden in the descendants, which can give the element filter for the element filter, which can limit the range, reverse, continuous and reflect, etc.

4

XSLTransformer XSLT deformed, need to give it the corresponding .xsl file will have a good document, taking the transformation, and then put it to another document or need an XML outputter output to know the format, a document, output form

5

XPath, use a static instance of an element address of the X path as an X path object, this object actively goes to seek element node groups above the DOC

转载请注明原文地址:https://www.9cbs.com/read-53611.html

New Post(0)