FORMATTER_DOCTYPE_PUBLIC, FORMATTER_DOCTYPE_SYSTEM, FORMATTER_ENCODING, FORMATTER_INDENT, FORMATTER_LINE_WIDTH, FORMATTER_METHOD, FORMATTER_MIME, FORMATTER_PRESERVE_SPACE, FORMATTER_XML_DECL, PROP_BROWSER, PROP_LANGUAGE, PROP_PATH, PROP_SAP, PROP_USER, PROP_WPL, PROP_XSL_DOM, PROP_XSL_PATH, PROP_XSL_PROD, TOOL_XMLPARSER, TOOL_XSLTPROC, WCM_FORMAT_PI, WCM_PROCESS_PI
Constructor and Description |
---|
XMLUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addTopLevelParam(Document document,
String name,
String key,
String value)
This method adds a top level parameter to the XML document
|
static Vector |
getAllPIs(Document document,
String name)
This method returns a vector of PI nodes based on the PI target name.
|
static Vector |
getAllPIs(Document document,
String name,
boolean remove)
This method returns all PI nodes based on the target name.
|
static ProcessingInstruction |
getFirstPI(Document document,
String name)
This method returns the first PI node based on the PI target name.
|
static ProcessingInstruction |
getFirstPI(Document document,
String name,
boolean remove)
This method returns the first PI based on the PI target name
|
static Hashtable |
getPIPseudoAttributes(Document document,
String name)
This method returns an hashtable with all the pseudo attributes collected
in the document.
|
static Hashtable |
getPIPseudoAttributes(ProcessingInstruction pi)
This method returns the pseudo attributes found in the first PI with the
given name.
|
static String |
getStylesheetUri(Document document)
This method extracts the stylesheet URI form a XML document
|
public static void addTopLevelParam(Document document, String name, String key, String value)
document
- XML DOMkey
- key of the top level parametervalue
- value of the top level parametername
- topLevelParam to be addedpublic static final String getStylesheetUri(Document document)
document
- XML DOMpublic static final Vector getAllPIs(Document document, String name)
document
- XML DOMname
- target name of the PIpublic static final Vector getAllPIs(Document document, String name, boolean remove)
document
- XML DOMname
- target name of the PIsremove
- remove PIs from the DOM if the flag is truepublic static final ProcessingInstruction getFirstPI(Document document, String name)
document
- XML DOMname
- target namepublic static final ProcessingInstruction getFirstPI(Document document, String name, boolean remove)
document
- XML DOMname
- target nameremove
- remove PI from the DOM if the flag is truepublic static final Hashtable getPIPseudoAttributes(Document document, String name)
document
- TBD: Description of the incoming method parametername
- TBD: Description of the incoming method parameterpublic static final Hashtable getPIPseudoAttributes(ProcessingInstruction pi)
pi
- Processing instructionAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice