Plugin recognizes the pre-defined "character entities", meaning special characters. Namely:
& & < < > > " " ' '
These are recognized when the XML document is read, and translated to there UTF-8 equivalents. For instance, text with the XML of:
Far & Away
will have the value of "Far & Away" when queried and will be written back to the XML file as an ampersand.
Additionally, any character can be specified by its Unicode code point: The syntax " " or " " are both to the non-breaking space characher.
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!-- COMMENT1 --> <ELEMENT> <ELEMENT2>TEXT</ELEMENT2> <!-- COMMENT2 --> <empty_ELEMENT /> <empty_ELEMENT2 NAME="VALUE" NAME2="VALUE2" /> </ELEMENT>
|
Declaration:
Root: Node: Text: Comment: Attribute: Child: Parent: |
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<ELEMENT> it is ELEMENT, TEXT, COMMENT, DECLARATION TEXT COMMENT1 and COMMENT2 NAME="VALUE" and NAME2="VALUE2" <ELEMENT2> is child for <ELEMENT> <ELEMENT> is parent for <ELEMENT2> |
|
| "[1|0]" | "1" "0" |
-condense all white space into a single space (default) -don't condense all white space into a single space |
|
| "[encoding]" | "" "UTF8" "LEGACY" |
-auto detect encoding UTF-8 or ANSI (default) -force encoding as unicode UTF-8 -force encoding as ANSI |
|
| "[file]" | - Load this file |
| $var | "0" success "-1" error |
|
| "[file]" | - Save this file, if empty save current loaded file |
| $var | "0" success "-1" error |
|
| $var1 | Version (e.g. "1.0") |
| $var2 | "0" success "-1" error |
|
| $var1 | Encoding (e.g. "utf-8") |
| $var2 | "0" success "-1" error |
|
| $var1 | Standalone (e.g. "yes") |
| $var2 | "0" success "-1" error |
|
| $var1 | Element text |
| $var2 | "0" success "-1" error |
|
| "[value]" | - Set this text |
| $var | "0" success "-1" error |
|
| "[0|1]" | "0" -turns off (default) "1" -turns on |
| $var | "0" success "-1" error |
|
| $var | "1" current node using CDATA "0" current node not using CDATA "-1" current node is not text |
|
| $var | Node value |
|
| "[value]" | - Set this value |
|
| "[name]" | - Element specified by name, if empty returns all founded elements |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
|
| $var1 | Root element name (the only top level element) |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Find first child element specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Find first child node specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Find last child node specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| $var | "1" current node has no children "0" current node has children |
|
| "[name]" | - Find next sibling element specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Find next sibling node specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Find previous sibling node specified by name, if empty returns first founded |
| $var1 | name |
| $var2 | "0" success "-1" error |
|
| "[handle]" | - Insert this node (handle returned by xml::NodeHandle, xml::CreateText, xml::CreateNode, xml::CloneNode) |
| $var | "0" success "-1" error |
|
| "[handle]" | - Insert this node (handle returned by xml::NodeHandle, xml::CreateText, xml::CreateNode, xml::CloneNode) |
| $var | "0" success "-1" error |
|
| "[handle]" | - Insert this node (handle returned by xml::NodeHandle, xml::CreateText, xml::CreateNode, xml::CloneNode) |
| $var | "0" success "-1" error |
|
| "[handle]" | - Replace with this node (handle returned by xml::NodeHandle, xml::CreateText, xml::CreateNode, xml::CloneNode) |
| $var | "0" success "-1" error |
|
| $var | "0" success "-1" error |
|
|
| "[text]" | - Create this text in memory |
| $var | handle to text node "0" error |
|
| "<a>text</a>" | - Create this node in memory |
| $var | handle to node "0" error |
|
| $var | handle to node "0" error |
|
| "[handle]" | - Free this node (handle returned by xml::CreateText, xml::CreateNode, xml::CloneNode) |
| $var | "0" success "-1" error |
|
| "[expression]" | - XPath expression (e.g. "count(//@*)") |
| $var1 | result string |
| $var2 | "0" success "-1" error |
|
| "[expression]" | - XPath expression (e.g. "/a/b") |
| $var | "0" success "-1" error |
|
| "[expression]" | - XPath expression (e.g. "/a/b/@attr") |
| $var | "0" success "-1" error |
|
| $var | current node handle "0" error |
|
| "[handle]" | - Go to this node (handle returned by xml::NodeHandle) |
| $var | "0" success "-1" error |
|
| $var | current element path (e.g. "/a/b/c[3]/d") |
|
| "[path]" | - Go to this path (e.g. from root "/a/b[2]/c/d", from currect element "a/b[2]/c/d", using last element 'b' "a/b[-1]/c/d", using any last element "a/[-1]/c/d", go to the document beginning "") |
| $var | "0" success "-1" error |
|
| $var | "ELEMENT" "COMMENT" "DOCUMENT" "TEXT" "DECLARATION" "UNKNOWN" |
|
| $var1 | Row |
| $var2 | Column |
| $var3 | "0" success "-1" error |
|
| "[name]" | - Find attribute specified by name |
| $var1 | attribute value |
| $var2 | "0" success "-1" error |
|
| "[name]" | - Attribute name |
| "[value]" | - Attribute value |
| $var | "0" success "-1" error |
|
| "[name]" | - Attribute name |
| $var | "0" success "-1" error |
|
| $var1 | attribute name |
| $var2 | attribute value |
| $var3 | "0" success "-1" error |
|
| $var1 | attribute name |
| $var2 | attribute value |
| $var3 | "0" success "-1" error |
|
| $var1 | attribute name |
| $var2 | attribute value |
| $var3 | "0" success "-1" error |
|
| $var1 | attribute name |
| $var2 | attribute value |
| $var3 | "0" success "-1" error |
|
| $var1 | attribute name |
| $var2 | attribute value |
| $var3 | "0" success "-1" error |
|
| "[name]" | - Attribute name |
|
| "[value]" | - Attribute value |
|