Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c19f1d1

Browse filesBrowse files
Merge pull request #6824 from livecodesam/dictionary_batch_32
[Dictionary] revXMLAttribute to revXMLPreviousSibling
2 parents cb735d9 + a22de31 commit c19f1d1
Copy full SHA for c19f1d1
Expand file treeCollapse file tree

11 files changed

+132
-125
lines changed

‎docs/dictionary/function/revXMLAttribute.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLAttribute.lcdoc
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ put revXMLAttribute(currTree,currNode,the short name of field x) \
2727

2828
Parameters:
2929
treeID:
30-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
31-
function when you created the XML tree.
30+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
31+
function when you created the <XML tree>.
3232

3333
node:
3434
The path to the node whose attribute value you want to get.
@@ -40,7 +40,7 @@ Returns:
4040
The <revXMLAttribute> <function> returns a <string>.
4141

4242
Description:
43-
Use the <revXMLAttribute> <function> to get an attribute's value.un
43+
Use the <revXMLAttribute> <function> to get an attribute's value.
4444

4545
If the <revXMLAttribute> <function> encounters an error, it
4646
<return|returns> an error message starting with "xmlerr".
@@ -54,7 +54,8 @@ If the <revXMLAttribute> <function> encounters an error, it
5454
> checkbox is checked.
5555

5656
References: function (control structure), revXMLAttributes (function),
57-
revXMLNodeContents (function), LiveCode custom library (glossary),
57+
revXMLNodeContents (function), revXMLCreateTree (function),
58+
revXMLCreateTreeFromFile (function), LiveCode custom library (glossary),
5859
node (glossary), Standalone Application Settings (glossary),
5960
standalone application (glossary), return (glossary),
6061
attribute (glossary), XML tree (glossary), string (keyword),

‎docs/dictionary/function/revXMLAttributeValues.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLAttributeValues.lcdoc
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ get revXMLAttributeValues(thisTree,thisNode,field "Type",comma,2)
2626

2727
Parameters:
2828
treeID:
29-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
30-
function when you created the XML tree.
29+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
30+
function when you created the <XML tree>.
3131

3232
startNode:
3333
The path to the node where you want to start.
@@ -69,6 +69,7 @@ If the <revXMLAttributeValues> <function> encounters an error, it
6969
> checkbox is checked.
7070

7171
References: function (control structure), revXMLAttributes (function),
72+
revXMLCreateTree (function), revXMLCreateTreeFromFile (function),
7273
revXMLMatchingNode (function), value (glossary),
7374
Standalone Application Settings (glossary),
7475
standalone application (glossary), XML tree (glossary), return (glossary),

‎docs/dictionary/function/revXMLChildContents.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLChildContents.lcdoc
+11-9Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ put revXMLChildContents(tTreeId, "root", tab, return, "full", -1) into tChildPat
2929

3030
Parameters:
3131
treeID:
32-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
33-
function when you created the XML tree.
32+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
33+
function when you created the <XML tree>.
3434

3535
startNode:
3636
The path to the node where you want to start.
@@ -42,12 +42,13 @@ nodeDelim (string):
4242
A string that separates each child node from the rest.
4343

4444
includePathDetails:
45-
The includePathDetails can take the following values: - "false" : just
46-
the name of each node is returned (default) - "true" : includes which
47-
child number each node is in brackets after its name - "full" : the full
48-
path of each node is returned including child numbers in brackets where
49-
required - "relative" : a path relative to startNode is included with
50-
child numbers in brackets where required
45+
The includePathDetails can take the following values:
46+
- "false" : just the name of each node is returned (default)
47+
- "true" : includes which child number each node is in brackets after its name
48+
- "full" : the full path of each node is returned including child numbers in brackets
49+
where required
50+
- "relative" : a path relative to startNode is included with child numbers in brackets
51+
where required
5152

5253
depth:
5354
The depth specifies how many generations of the XML tree to show. If you
@@ -85,7 +86,8 @@ string "Text" when called with "root" as the <startNode> and 1 as the
8586
> checkbox is checked.
8687

8788
References: revXMLAppend (command), function (control structure),
88-
revXMLAttributes (function), revXMLNumberOfChildren (function),
89+
revXMLAttributes (function), revXMLCreateTree (function),
90+
revXMLCreateTreeFromFile (function), revXMLNumberOfChildren (function),
8991
LiveCode custom library (glossary),
9092
Standalone Application Settings (glossary), tag (glossary),
9193
standalone application (glossary), return (glossary), XML tree (glossary),

‎docs/dictionary/function/revXMLChildNames.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLChildNames.lcdoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ get revXMLChildNames(currTree,line 2 of theNodes,return,"Grass",true)
2626

2727
Parameters:
2828
treeID:
29-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
30-
function when you created the XML tree.
29+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
30+
function when you created the <XML tree>.
3131

3232
startNode:
3333
The path to the node whose child nodes you want to list.

‎docs/dictionary/function/revXMLDataFromXPathQuery.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLDataFromXPathQuery.lcdoc
+43-44Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ Syntax: revXMLDataFromXPathQuery(pDocID, pXPathExpression [, charDelimiter [, li
77
Summary:
88
pDocID is the xml document id returned from one of the revXMLCreate
99
functions. The charDelimiter and lineDelimiter both default to cr. If
10-
neither is specified then the items will be returned one per line: J. K.
11-
Rowling Harry Potter
10+
neither is specified then the items will be returned one per line.
11+
For example:
12+
13+
J. K. Rowling
14+
15+
Harry Potter
16+
1217
Cory Doctorow
18+
1319
Little Brother
1420

1521
Introduced: 6.5
@@ -26,50 +32,43 @@ The revXMLDataFromXPathQuery function returns the data set resulting
2632
from evaluating the xpath expression against the specified xml tree. For
2733
instance, given xml data of
2834

29-
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
30-
&lt;bookstore&gt;
31-
&lt;book category="COOKING"&gt;
32-
33-
&lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
34-
&lt;author&gt;Giada De Laurentiis&lt;/author&gt;
35-
&lt;year&gt;2005&lt;/year&gt;
36-
&lt;price&gt;30.00&lt;/price&gt;
37-
38-
&lt;/book&gt;
39-
&lt;book category="CHILDREN"&gt;
40-
41-
&lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
42-
&lt;author&gt;J K. Rowling&lt;/author&gt;
43-
&lt;year&gt;2005&lt;/year&gt;
44-
&lt;price&gt;29.99&lt;/price&gt;
45-
46-
&lt;/book&gt;
47-
&lt;book category="WEB"&gt;
48-
49-
&lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
50-
&lt;author&gt;James McGovern&lt;/author&gt;
51-
&lt;author&gt;Per Bothner&lt;/author&gt;
52-
&lt;author&gt;Kurt Cagle&lt;/author&gt;
53-
&lt;author&gt;James Linn&lt;/author&gt;
54-
&lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
55-
&lt;year&gt;2003&lt;/year&gt;
56-
&lt;price&gt;49.99&lt;/price&gt;
57-
58-
&lt;/book&gt;
59-
&lt;book category="WEB"&gt;
60-
61-
&lt;title lang="en"&gt;Learning XML&lt;/title&gt;
62-
&lt;author&gt;Erik T. Ray&lt;/author&gt;
63-
&lt;year&gt;2003&lt;/year&gt;
64-
&lt;price&gt;39,95&lt;/price&gt;
65-
66-
&lt;/book&gt;
67-
&lt;/bookstore&gt;
68-
35+
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
36+
&lt;bookstore&gt;
37+
&lt;book category="COOKING"&gt;
38+
&lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
39+
&lt;author&gt;Giada De Laurentiis&lt;/author&gt;
40+
&lt;year&gt;2005&lt;/year&gt;
41+
&lt;price&gt;30.00&lt;/price&gt;
42+
&lt;/book&gt;
43+
&lt;book category="CHILDREN"&gt;
44+
&lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
45+
&lt;author&gt;J K. Rowling&lt;/author&gt;
46+
&lt;year&gt;2005&lt;/year&gt;
47+
&lt;price&gt;29.99&lt;/price&gt;
48+
&lt;/book&gt;
49+
&lt;book category="WEB"&gt;
50+
&lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
51+
&lt;author&gt;James McGovern&lt;/author&gt;
52+
&lt;author&gt;Per Bothner&lt;/author&gt;
53+
&lt;author&gt;Kurt Cagle&lt;/author&gt;
54+
&lt;author&gt;James Linn&lt;/author&gt;
55+
&lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
56+
&lt;year&gt;2003&lt;/year&gt;
57+
&lt;price&gt;49.99&lt;/price&gt;
58+
&lt;/book&gt;
59+
&lt;book category="WEB"&gt;
60+
&lt;title lang="en"&gt;Learning XML&lt;/title&gt;
61+
&lt;author&gt;Erik T. Ray&lt;/author&gt;
62+
&lt;year&gt;2003&lt;/year&gt;
63+
&lt;price&gt;39,95&lt;/price&gt;
64+
&lt;/book&gt;
65+
&lt;/bookstore&gt;
66+
&lt;/xml&gt;
67+
6968
then
7069

71-
put "/bookstore/book/[price&lt;30]/title" into pXPathExpression
72-
put revXMLDataFromXPathQuery(pDocID, pXPathExpression)
70+
put "/bookstore/book/[price&lt;30]/title" into pXPathExpression
71+
put revXMLDataFromXPathQuery(pDocID, pXPathExpression)
7372

7473
gives you "Harry Potter"
7574

‎docs/dictionary/function/revXMLEvaluateXPath.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLEvaluateXPath.lcdoc
+43-43Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ Syntax: revXMLEvaluateXPath(pDocID, pXPathExpression [, charDelimiter ] )
66

77
Summary:
88
The charDelimiter defaults to cr. If not specified then the items will
9-
be returned one per line: J. K. Rowling
9+
be returned one per line. For example:
10+
11+
J. K. Rowling
12+
1013
Harry Potter
14+
1115
Cory Doctorow
16+
1217
Little Brother
1318

1419
Introduced: 6.5
@@ -26,55 +31,50 @@ The revXMLEvaluateXPath function returns the data set resulting from
2631
evaluating the xpath expression against the specified xml tree. For
2732
instance, given xml data of
2833

29-
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
30-
&lt;bookstore&gt;
31-
&lt;book category="COOKING"&gt;
32-
33-
&lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
34-
&lt;author&gt;Giada De Laurentiis&lt;/author&gt;
35-
&lt;year&gt;2005&lt;/year&gt;
36-
&lt;price&gt;30.00&lt;/price&gt;
37-
38-
&lt;/book&gt;
39-
&lt;book category="CHILDREN"&gt;
40-
41-
&lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
42-
&lt;author&gt;J K. Rowling&lt;/author&gt;
43-
&lt;year&gt;2005&lt;/year&gt;
44-
&lt;price&gt;29.99&lt;/price&gt;
45-
46-
&lt;/book&gt;
47-
&lt;book category="WEB"&gt;
48-
49-
&lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
50-
&lt;author&gt;James McGovern&lt;/author&gt;
51-
&lt;author&gt;Per Bothner&lt;/author&gt;
52-
&lt;author&gt;Kurt Cagle&lt;/author&gt;
53-
&lt;author&gt;James Linn&lt;/author&gt;
54-
&lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
55-
&lt;year&gt;2003&lt;/year&gt;
56-
&lt;price&gt;49.99&lt;/price&gt;
57-
58-
&lt;/book&gt;
59-
&lt;book category="WEB"&gt;
60-
61-
&lt;title lang="en"&gt;Learning XML&lt;/title&gt;
62-
&lt;author&gt;Erik T. Ray&lt;/author&gt;
63-
&lt;year&gt;2003&lt;/year&gt;
64-
&lt;price&gt;39,95&lt;/price&gt;
65-
66-
&lt;/book&gt;
67-
&lt;/bookstore&gt;
68-
34+
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
35+
&lt;bookstore&gt;
36+
&lt;book category="COOKING"&gt;
37+
&lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
38+
&lt;author&gt;Giada De Laurentiis&lt;/author&gt;
39+
&lt;year&gt;2005&lt;/year&gt;
40+
&lt;price&gt;30.00&lt;/price&gt;
41+
&lt;/book&gt;
42+
&lt;book category="CHILDREN"&gt;
43+
&lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
44+
&lt;author&gt;J K. Rowling&lt;/author&gt;
45+
&lt;year&gt;2005&lt;/year&gt;
46+
&lt;price&gt;29.99&lt;/price&gt;
47+
&lt;/book&gt;
48+
&lt;book category="WEB"&gt;
49+
&lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
50+
&lt;author&gt;James McGovern&lt;/author&gt;
51+
&lt;author&gt;Per Bothner&lt;/author&gt;
52+
&lt;author&gt;Kurt Cagle&lt;/author&gt;
53+
&lt;author&gt;James Linn&lt;/author&gt;
54+
&lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
55+
&lt;year&gt;2003&lt;/year&gt;
56+
&lt;price&gt;49.99&lt;/price&gt;
57+
&lt;/book&gt;
58+
&lt;book category="WEB"&gt;
59+
&lt;title lang="en"&gt;Learning XML&lt;/title&gt;
60+
&lt;author&gt;Erik T. Ray&lt;/author&gt;
61+
&lt;year&gt;2003&lt;/year&gt;
62+
&lt;price&gt;39,95&lt;/price&gt;
63+
&lt;/book&gt;
64+
&lt;/bookstore&gt;
65+
&lt;/xml&gt;
66+
6967
then
7068

71-
put "/bookstore/book/[price&lt;40]/" into pXPathExpression
72-
put revXMLEvaluateXPath(pDocID, pXPathExpression)
69+
put "/bookstore/book/[price&lt;40]/" into pXPathExpression
70+
put revXMLEvaluateXPath(pDocID, pXPathExpression)
7371

7472
gives you
7573

7674
bookstore/book[1]
75+
7776
bookstore/book[2]
77+
7878
bookstore/book[4]
7979

8080
References: revXMLCreateTreeFromFile (function),

‎docs/dictionary/function/revXMLFirstChild.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLFirstChild.lcdoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The <revXMLFirstChild> <function> returns a <string> consisting of the
3636
path to the first child node.
3737

3838
Description:
39-
Use the <revXMLFirstChild> <function> to begin scanning the <child
40-
node|child nodes> of a <parent node>.
39+
Use the <revXMLFirstChild> <function> to begin scanning the
40+
<child node|child nodes> of a <parent node>.
4141

4242
If the <revXMLFirstChild> <function> encounters an error, it
4343
<return|returns> an error message starting with "xmlerr".

‎docs/dictionary/function/revXMLNextSibling.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLNextSibling.lcdoc
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Type: function
55
Syntax: revXMLNextSibling(<treeID>, <siblingNode>, [incText] )
66

77
Summary:
8-
<return|Returns> the path to a <child node|child node's> next <sibling
9-
node>.
8+
<return|Returns> the path to a <child node|child node's> next
9+
<sibling node>.
1010

1111
Associations: xml library
1212

@@ -26,8 +26,8 @@ put revXMLNextSibling(the currTree of me,thisNode) into nextNode
2626

2727
Parameters:
2828
treeID:
29-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
30-
function when you created the XML tree.
29+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
30+
function when you created the <XML tree>.
3131

3232
siblingNode:
3333
The path to the node where you want to start.
@@ -62,7 +62,8 @@ If the <revXMLNextSibling> <function> encounters an error, it
6262
> checkbox is checked.
6363

6464
References: function (control structure), revXMLRootNode (function),
65-
revXMLFirstChild (function), LiveCode custom library (glossary),
65+
revXMLFirstChild (function), revXMLCreateTree (function),
66+
revXMLCreateTreeFromFile (function), LiveCode custom library (glossary),
6667
sibling node (glossary), Standalone Application Settings (glossary),
6768
standalone application (glossary), return (glossary),
6869
child node (glossary), XML library (library), nodes (property)

‎docs/dictionary/function/revXMLNodeContents.lcdoc

Copy file name to clipboardExpand all lines: docs/dictionary/function/revXMLNodeContents.lcdoc
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Type: function
55
Syntax: revXMLNodeContents(<treeID>, <node>)
66

77
Summary:
8-
<return|Returns> the text contained in the specified <node> in an <XML
9-
tree>.
8+
<return|Returns> the text contained in the specified <node> in an
9+
<XML tree>.
1010

1111
Associations: xml library
1212

@@ -26,8 +26,8 @@ put revXMLNodeContents(thisDoc,mySection) into field "Current Section"
2626

2727
Parameters:
2828
treeID:
29-
The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile
30-
function when you created the XML tree.
29+
The number returned by the <revXMLCreateTree> or <revXMLCreateTreeFromFile>
30+
function when you created the <XML tree>.
3131

3232
node:
3333
The path to the node whose contents you want to get.
@@ -60,8 +60,9 @@ string "Text" when called with "root" as the <node>.
6060
> checkbox is checked.
6161

6262
References: revXMLDeleteNode (command), revXMLAppend (command),
63-
function (control structure), revXMLAttribute (function), node (glossary),
64-
Standalone Application Settings (glossary),
63+
function (control structure), revXMLAttribute (function),
64+
revXMLCreateTree (function), revXMLCreateTreeFromFile (function),
65+
node (glossary), Standalone Application Settings (glossary),
6566
standalone application (glossary), XML tree (glossary), return (glossary),
6667
LiveCode custom library (glossary), string (keyword),
6768
XML library (library)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.