Skip to content

Commit 17a34e9

Browse files
author
Jonathan Feinberg
committed
Merge branch 'master' of github.com:jdf/processing-py-site
2 parents d4f5ad8 + cbf5624 commit 17a34e9

27 files changed

Lines changed: 192 additions & 188 deletions

‎Reference/api_en/Boolean.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if a:
2222
</example>
2323

2424
<description><![CDATA[
25-
Datatype for the Boolean values <b>True</b> and <b>False</b>. It is common to use <b>boolean</b> values with control statements to determine the flow of a program. The first time a variable is written, it must be declared with a statement expressing its datatype.
25+
Datatype for the Boolean values <b>True</b> and <b>False</b>. It is common to use <b>boolean</b> values with control statements to determine the flow of a program.
2626
]]></description>
2727

2828
<syntax>

‎Reference/api_en/XML.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# The following short XML file called "mammals.xml" is parsed
1616
# in the code below. It must be in the project's "data" folder.
1717
#
18-
# &lt;?xml version="1.0"&gt;
19-
# &lt;mammals&gt;
20-
# &lt;animal id="0" species="Capra hircus"&gt;Goat&lt;/animal&gt;
21-
# &lt;animal id="1" species="Panthera pardus"&gt;Leopard&lt;/animal&gt;
22-
# &lt;animal id="2" species="Equus zebra"&gt;Zebra&lt;/animal&gt;
23-
# &lt;/mammals&gt;
18+
# <?xml version="1.0">
19+
# <mammals>
20+
# <animal id="0" species="Capra hircus">Goat</animal>
21+
# <animal id="1" species="Panthera pardus">Leopard</animal>
22+
# <animal id="2" species="Equus zebra">Zebra</animal>
23+
# </mammals>
2424
xml = loadXML("mammals.xml")
2525
children = xml.getChildren("animal")
2626
for i in range(len(children)):

‎Reference/api_en/XML_addChild.xml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
# The following short XML file called "mammals.xml" is parsed
1616
# in the code below. It must be in the project's "data" folder.
1717
#
18-
# &lt;?xml version="1.0"&gt;
19-
# &lt;mammals&gt;
20-
# &lt;animal id="0" species="Capra hircus"&gt;Goat&lt;/animal&gt;
21-
# &lt;animal id="1" species="Panthera pardus"&gt;Leopard&lt;/animal&gt;
22-
# &lt;animal id="2" species="Equus zebra"&gt;Zebra&lt;/animal&gt;
23-
# &lt;/mammals&gt;
18+
# <?xml version="1.0">
19+
# <mammals>
20+
# <animal id="0" species="Capra hircus">Goat</animal>
21+
# <animal id="1" species="Panthera pardus">Leopard</animal>
22+
# <animal id="2" species="Equus zebra">Zebra</animal>
23+
# </mammals>
2424
xml = loadXML("mammals.xml")
2525
newChild = xml.addChild("animal")
2626
newChild.setContent("bloodhound")
2727
print(xml)
2828
# Sketch prints:
29-
# &lt;mammals&gt;
30-
# &lt;animal id="0" species="Capra hircus"&gt;Goat&lt;/animal&gt;
31-
# &lt;animal id="1" species="Panthera pardus"&gt;Leopard&lt;/animal&gt;
32-
# &lt;animal id="2" species="Equus zebra"&gt;Zebra&lt;/animal&gt;
33-
# &lt;animal&gt;bloodhound&lt;/animal&gt;
34-
# &lt;/mammals&gt;
29+
# <mammals>
30+
# <animal id="0" species="Capra hircus">Goat</animal>
31+
# <animal id="1" species="Panthera pardus">Leopard</animal>
32+
# <animal id="2" species="Equus zebra">Zebra</animal>
33+
# <animal>bloodhound</animal>
34+
# </mammals>
3535
]]></code>
3636
</example>
3737

‎Reference/api_en/XML_format.xml‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
# The following short XML file called "mammals.xml" is parsed
1515
# in the code below. It must be in the project's "data" folder.
1616
#
17-
# &lt?xml version=&quot1.0&quot?&gt
18-
# &ltmammals&gt
19-
# &ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
20-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
21-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
22-
# &lt/mammals&gt
17+
# <?xml version="1.0"?>
18+
# <mammals>
19+
# <animal id="0"species="Capra hircus">Goat</animal>
20+
# <animal id="1"species="Panthera pardus">Leopard</animal>
21+
# <animal id="2"species="Equus zebra">Zebra</animal>
22+
# </mammals>
2323
xml = None
2424
2525
def setup():
@@ -38,23 +38,23 @@ def setup():
3838
s = xml.format(5)
3939
print(s)
4040
# Sketch prints:
41-
#&ltmammals&gt&ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
42-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
43-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt&lt/mammals&gt
41+
#<mammals><animal id="0"species="Capra hircus">Goat</animal>
42+
# <animal id="1"species="Panthera pardus">Leopard</animal>
43+
# <animal id="2"species="Equus zebra">Zebra</animal></mammals>
4444
#
45-
#&lt?xml version=&quot1.0&quotencoding=&quotUTF-8&quot?&gt
46-
#&ltmammals&gt
47-
#&ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
48-
#&ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
49-
#&ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
50-
#&lt/mammals&gt
45+
#<?xml version="1.0"encoding="UTF-8"?>
46+
#<mammals>
47+
#<animal id="0"species="Capra hircus">Goat</animal>
48+
#<animal id="1"species="Panthera pardus">Leopard</animal>
49+
#<animal id="2"species="Equus zebra">Zebra</animal>
50+
#</mammals>
5151
#
52-
#&lt?xml version=&quot1.0&quotencoding=&quotUTF-8&quot?&gt
53-
#&ltmammals&gt
54-
# &ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
55-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
56-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
57-
#&lt/mammals&gt
52+
#<?xml version="1.0"encoding="UTF-8"?>
53+
#<mammals>
54+
# <animal id="0"species="Capra hircus">Goat</animal>
55+
# <animal id="1"species="Panthera pardus">Leopard</animal>
56+
# <animal id="2"species="Equus zebra">Zebra</animal>
57+
#</mammals>
5858
]]></code>
5959
</example>
6060

‎Reference/api_en/XML_getAttributeCount.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# The following short XML file called "mammals.xml" is parsed
1616
# in the code below. It must be in the project's "data" folder.
1717
#
18-
# &lt;?xml version="1.0"&gt;
19-
# &lt;mammals&gt;
20-
# &lt;animal id="0" species="Capra hircus"&gt;Goat&lt;/animal&gt;
21-
# &lt;animal id="1" species="Panthera pardus"&gt;Leopard&lt;/animal&gt;
22-
# &lt;animal id="2" species="Equus zebra"&gt;Zebra&lt;/animal&gt;
23-
# &lt;/mammals&gt;
18+
# <?xml version="1.0">
19+
# <mammals>
20+
# <animal id="0" species="Capra hircus">Goat</animal>
21+
# <animal id="1" species="Panthera pardus">Leopard</animal>
22+
# <animal id="2" species="Equus zebra">Zebra</animal>
23+
# </mammals>
2424
xml = loadXML("mammals.xml")
2525
firstChild = xml.getChild("animal")
2626
print(firstChild.getAttributeCount())

‎Reference/api_en/XML_getChild.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
# The following short XML file called "mammals.xml" is parsed
1515
# in the code below. It must be in the project's "data" folder.
1616
#
17-
# &lt?xml version=&quot1.0&quot?&gt
18-
# &ltmammals&gt
19-
# &ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
20-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
21-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
22-
# &lt/mammals&gt
17+
# <?xml version="1.0"?>
18+
# <mammals>
19+
# <animal id="0"species="Capra hircus">Goat</animal>
20+
# <animal id="1"species="Panthera pardus">Leopard</animal>
21+
# <animal id="2"species="Equus zebra">Zebra</animal>
22+
# </mammals>
2323
def setup():
2424
xml = loadXML("mammals.xml")
2525
firstChild = xml.getChild("animal")

‎Reference/api_en/XML_getChildren.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# The following short XML file called "mammals.xml" is parsed
1616
# in the code below. It must be in the project's "data" folder.
1717
#
18-
# &lt;?xml version="1.0"?&gt;
19-
# &lt;mammals&gt;
20-
# &lt;animal id="0" species="Capra hircus"&gt;Goat&lt;/animal&gt;
21-
# &lt;animal id="1" species="Panthera pardus"&gt;Leopard&lt;/animal&gt;
22-
# &lt;animal id="2" species="Equus zebra"&gt;Zebra&lt;/animal&gt;
23-
# &lt;/mammals&gt;
18+
# <?xml version="1.0"?>
19+
# <mammals>
20+
# <animal id="0" species="Capra hircus">Goat</animal>
21+
# <animal id="1" species="Panthera pardus">Leopard</animal>
22+
# <animal id="2" species="Equus zebra">Zebra</animal>
23+
# </mammals>
2424
xml = loadXML("mammals.xml")
2525
animals = xml.getChildren("animal")
2626
for i in range(len(animals)):

‎Reference/api_en/XML_getContent.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
# The following short XML file called "mammals.xml" is parsed
1515
# in the code below. It must be in the project's "data" folder.
1616
#
17-
# &lt?xml version=&quot1.0&quot?&gt
18-
# &ltmammals&gt
19-
# &ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
20-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
21-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
22-
# &lt/mammals&gt
17+
# <?xml version="1.0"?>
18+
# <mammals>
19+
# <animal id="0"species="Capra hircus">Goat</animal>
20+
# <animal id="1"species="Panthera pardus">Leopard</animal>
21+
# <animal id="2"species="Equus zebra">Zebra</animal>
22+
# </mammals>
2323
def setup():
2424
xml = loadXML("mammals.xml")
2525
firstChild = xml.getChild("animal")

‎Reference/api_en/XML_getFloat.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
# The following short XML file called "mammals.xml" is parsed
1515
# in the code below. It must be in the project's "data" folder.
1616
#
17-
# &lt?xml version=&quot1.0&quot?&gt
18-
# &ltmammals&gt
19-
# &ltanimal id=&quot0&quotspecies=&quotCapra hircus&quot&gtGoat&lt/animal&gt
20-
# &ltanimal id=&quot1&quotspecies=&quotPanthera pardus&quot&gtLeopard&lt/animal&gt
21-
# &ltanimal id=&quot2&quotspecies=&quotEquus zebra&quot&gtZebra&lt/animal&gt
22-
# &lt/mammals&gt
17+
# <?xml version="1.0"?>
18+
# <mammals>
19+
# <animal id="0"species="Capra hircus">Goat</animal>
20+
# <animal id="1"species="Panthera pardus">Leopard</animal>
21+
# <animal id="2"species="Equus zebra">Zebra</animal>
22+
# </mammals>
2323
def setup():
2424
xml = loadXML("mammals.xml")
2525
firstChild = xml.getChild("animal")

‎Reference/api_en/XML_getFloatContent.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
# The following short XML file called "positions.xml" is parsed
1515
# in the code below. It must be in the project's "data" folder.
1616
#
17-
# &lt?xml version=&quot1.0&quot?&gt
18-
# &ltpositions&gt
19-
# &ltposition id="0"&gt128.111&lt/position&gt
20-
# &ltposition id="1"&gt256.222&lt/position&gt
21-
# &ltposition id="2"&gt512.333&lt/position&gt
22-
# &lt/positions&gt
17+
# <?xml version="1.0"?>
18+
# <positions>
19+
# <position id="0">128.111</position>
20+
# <position id="1">256.222</position>
21+
# <position id="2">512.333</position>
22+
# </positions>
2323
def setup():
2424
xml = loadXML("positions.xml")
2525
firstChild = xml.getChild("position")

0 commit comments

Comments
 (0)