public class BBXMLDoc extends Object
Modifier and Type | Field and Description |
---|---|
BBjNumber |
IgnoreWhitespace |
static BBjNumber |
RootNodeAlreadyExistsErr |
Constructor and Description |
---|
BBXMLDoc() |
BBXMLDoc(BBjString p_xmlString!) |
BBXMLDoc(BBjString p_xmlFileName$,
BBjNumber p_ignoreWhitespace) |
Modifier and Type | Method and Description |
---|---|
CDATASection |
addCDATANode(Element p_parentElement!,
BBjString p_cdata$) |
Comment |
addCommentNode(Element p_parentElement!,
BBjString p_comment$) |
Element |
addElement(Element p_parentElement!,
BBjString p_tagName$) |
Element |
addElementWithAttribute(Element p_parentElement!,
BBjString p_tagName$,
BBjString p_attrName$,
BBjString p_attrValue$) |
Element |
addElementWithAttributes(Element p_parentElement!,
BBjString p_tagName$,
HashMap p_attributes!) |
Element |
addElementWithCDATA(Element p_parentElement!,
BBjString p_tagName$,
BBjString p_cdata$) |
Element |
addElementWithTextNode(Element p_parentElement!,
BBjString p_tagName$,
BBjString p_nodeText$) |
Element |
addRootElement(BBjString p_nodeTag$) |
Text |
addTextNode(Element p_parentElement!,
BBjString p_text$) |
BBjVector |
getAllMatchingNodes(BBjString p_name!) |
BBjVector |
getAllMatchingNodes(Node p_node!,
BBjString p_name!) |
void |
getAllMatchingNodes(Node p_node!,
BBjString p_name!,
BBjNumber p_nodeType,
BBjVector p_nodeVector!) |
BBjVector |
getAllMatchingNodesWithAttr(BBjString p_attrName$) |
void |
getAllMatchingNodesWithAttr(Node p_node!,
BBjString p_attrName$,
BBjString p_attrValue!,
BBjVector p_nodeVector!) |
Document |
getDocument() |
static BBjString |
getIndentSpaces(BBjNumber p_indent) |
Node |
getNode(BBjString p_name$) |
Node |
getNode(Node p_node!,
BBjString p_name$) |
BBjString |
getNodeAttribute(Node p_node!,
BBjString p_attrKey$) |
BBjString |
getNodeCDATA(Node p_node!) |
BBjString |
getNodeComment(Node p_node!) |
BBjString |
getNodeText(Node p_node!) |
BBjString |
getNodeValue(Node p_node!,
BBjNumber p_nodeType) |
Element |
getRootElement() |
static BBjNumber |
isWellFormed(BBjString xmlFileName$) |
void |
removeAllMatchingNodes(BBjString p_name!) |
void |
removeAllMatchingNodes(Node p_node!,
BBjString p_name!) |
void |
removeAllMatchingNodes(Node p_node!,
BBjString p_name!,
BBjNumber p_nodeType) |
void |
removeNode(Node p_node!) |
static void |
runDemo() |
BBjString |
toString() |
void |
writeToConsole() |
void |
writeToConsole(BBjNumber p_indent) |
void |
writeToConsole(Node p_node!,
BBjNumber p_indent) |
void |
writeToFile(BBjString p_fileName$) |
public BBjNumber IgnoreWhitespace
public static BBjNumber RootNodeAlreadyExistsErr
public BBXMLDoc()
public BBXMLDoc(BBjString p_xmlString!)
public BBXMLDoc(BBjString p_xmlFileName$, BBjNumber p_ignoreWhitespace)
public Document getDocument()
public Element addRootElement(BBjString p_nodeTag$)
public Element addElementWithTextNode(Element p_parentElement!, BBjString p_tagName$, BBjString p_nodeText$)
public Element addElementWithAttributes(Element p_parentElement!, BBjString p_tagName$, HashMap p_attributes!)
public Element addElementWithAttribute(Element p_parentElement!, BBjString p_tagName$, BBjString p_attrName$, BBjString p_attrValue$)
public Element addElementWithCDATA(Element p_parentElement!, BBjString p_tagName$, BBjString p_cdata$)
public CDATASection addCDATANode(Element p_parentElement!, BBjString p_cdata$)
public Node getNode(BBjString p_name$)
public BBjVector getAllMatchingNodes(BBjString p_name!)
public BBjVector getAllMatchingNodes(Node p_node!, BBjString p_name!)
public void getAllMatchingNodes(Node p_node!, BBjString p_name!, BBjNumber p_nodeType, BBjVector p_nodeVector!)
public BBjVector getAllMatchingNodesWithAttr(BBjString p_attrName$)
public void getAllMatchingNodesWithAttr(Node p_node!, BBjString p_attrName$, BBjString p_attrValue!, BBjVector p_nodeVector!)
public void removeNode(Node p_node!)
public void removeAllMatchingNodes(BBjString p_name!)
public void removeAllMatchingNodes(Node p_node!, BBjString p_name!)
public void removeAllMatchingNodes(Node p_node!, BBjString p_name!, BBjNumber p_nodeType)
public Element getRootElement()
public BBjString getNodeAttribute(Node p_node!, BBjString p_attrKey$)
public BBjString getNodeText(Node p_node!)
public BBjString getNodeComment(Node p_node!)
public BBjString getNodeCDATA(Node p_node!)
public BBjString getNodeValue(Node p_node!, BBjNumber p_nodeType)
public void writeToFile(BBjString p_fileName$)
public void writeToConsole()
public void writeToConsole(BBjNumber p_indent)
public void writeToConsole(Node p_node!, BBjNumber p_indent)
public static BBjNumber isWellFormed(BBjString xmlFileName$)
public static BBjString getIndentSpaces(BBjNumber p_indent)
public static void runDemo()