public class SimpleXMLParser extends Object
Constructor and Description |
---|
SimpleXMLParser(String xml)
Create a simple xml parser which parses the given XML fragment.
|
Modifier and Type | Method and Description |
---|---|
SimpleXMLParser |
getElementParser(String element)
Generate a simple XML parser to parse the XML in the given element.
|
String |
getElementString(String element)
Retrieve the children of a given XML element.
|
public SimpleXMLParser(String xml)
xml
- The XML fragment to parsepublic SimpleXMLParser getElementParser(String element) throws Exception
element
- The element whose children will be parsed.Exception
Copyright © 2021 JBoss by Red Hat. All rights reserved.