public class XmlUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_HEADER
Deprecated.
Represents the default header used for all xml documents that communicate with an M server via VistALink.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
convertXmlToStr(Document doc)
Deprecated.
Need for XML utilities has been superceded by the many JRE-built-in and external XML frameworks
|
static Attr |
getAttr(Node node,
String attrName)
Deprecated.
Need for XML utilities has been superceded by the many JRE-built-in and external XML frameworks
|
static Document |
getDocumentForXmlInputStream(InputStream xml)
Deprecated.
Need for XML utilities has been superceded by the many JRE-built-in and external XML frameworks
|
static Document |
getDocumentForXmlString(String xml)
Deprecated.
Need for XML utilities has been superceded by the many JRE-built-in and external XML frameworks
|
static Node |
getNode(String xpathStr,
Node node)
Deprecated.
Need for XML utilities has been superceded by the many JRE-built-in and external XML frameworks
|
public static final String XML_HEADER
public static String convertXmlToStr(Document doc) throws FoundationsException
doc - FoundationsExceptionpublic static Node getNode(String xpathStr, Node node)
Example:
This example returns the Customer/Address node in the specified document object.
Node address = XmlUtilities.getNode("/Customer/Address", custDoc);
xpathStr - XPath strnode - Node to searchpublic static Attr getAttr(Node node, String attrName)
Example:
This example returns the 'state' attribute from the address node.
Attr state = getAttr(address,"state")
node - Node to searchattrName - Name of the attribute to findpublic static Document getDocumentForXmlString(String xml) throws FoundationsException
Example:
This example creates a customer XML document for a serialized customer:
Document cust = XmlUtilities.getDocumentForXmlString(custXmlString);
xml - serialized XML documentFoundationsExceptionpublic static Document getDocumentForXmlInputStream(InputStream xml) throws FoundationsException
Example:
This example creates a customer XML document from an input stream.
Document cust = XmlUtilities.getDocumentForXmlInputStream(custStream);
xml - input stream to processedFoundationsExceptionCopyright © 2026. All rights reserved.