We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
new proXML version (Read 5606 times)
new proXML version
Oct 31st, 2006, 9:33pm
 
Hi

I have updated the proXML lib. In the new version you can load  XML files in the background.

http://texone.org/proxml/xmlinout_method_loadelement.htm

There are two new methods getText() and getName() on XMLElement:

http://texone.org/proxml/xmlelement_method_gettext.htm
http://texone.org/proxml/xmlelement_method_getname.htm

Infact they do the same as getElement() but maybe it is less confusing.

There is a new method for removing child nodes from an Element:

http://texone.org/proxml/xmlelement_method_removechild.htm

And there are new methods for accessing childnodes and siblings:

http://texone.org/proxml/xmlelement_method_firstchild.htm
http://texone.org/proxml/xmlelement_method_lastchild.htm
http://texone.org/proxml/xmlelement_method_nextsibling.htm
http://texone.org/proxml/xmlelement_method_previoussibling.htm

I also fixed some bugs with parsing xml.
Re: new proXML version
Reply #1 - Nov 4th, 2006, 12:48pm
 
Tex,

The new version of proXML is not playing nicely with Candy. We're using the previous version, which seems to work well. I'm not sure on which end the problem is occuring, but this is the beginning of the error message:

Code:

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0

at java.util.Vector.get(Unknown Source)

at proxml.XMLElement.getChild(XMLElement.java:493)

at candy.SVG.<init>(SVG.java:72)

at Temporary_6481_5745.setup(Temporary_6481_5745.java:9)
java.lang.ArrayIndexOutOfBoundsException: 34


Casey
Re: new proXML version
Reply #2 - Nov 10th, 2006, 12:55am
 
Hi Casey

Could you or Michael please send me a file that causes the error I tried several svg files also really big ones and all have been correctly parsed. I would really like to fix it.

Christian
Re: new proXML version
Reply #3 - Nov 15th, 2006, 5:53pm
 
Tex, Here's an example:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [

<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">

<!ENTITY ns_svg "http://www.w3.org/2000/svg">

<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"

width="418" height="170" viewBox="-0.573 -0.607 418 170" enable-background="new -0.573 -0.607 418 170" xml:space="preserve">
<defs>
</defs>
<polygon fill="#FF7F00" stroke="#000000" points="63.427,12.393 81.427,53.216 125.781,48.393 99.427,84.393 125.781,120.393

81.427,115.57 63.427,156.393 45.427,115.57 1.073,120.393 27.427,84.393 1.073,48.393 45.427,53.216 "/>
<polygon fill="#FF7F00" stroke="#000000" stroke-width="10" points="208.427,12.393 226.427,53.216 270.781,48.393 244.427,84.393

270.781,120.393 226.427,115.57 208.427,156.393 190.427,115.57 146.073,120.393 172.427,84.393 146.073,48.393 190.427,53.216 "/>
<polygon fill="#FF7F00" stroke="#000000" points="353.427,12.393 371.427,53.216 415.781,48.393 389.427,84.393 415.781,120.393

371.427,115.57 353.427,156.393 335.427,115.57 291.074,120.393 317.427,84.393 291.074,48.393 335.427,53.216 "/>
</svg>
Re: new proXML version
Reply #4 - Nov 15th, 2006, 7:26pm
 
Hi Casey

There was a bug in Candy that was working before because proXML did it wrong. So I changed some lines in Candy and it is working now, I already send the fixed version to Michael so it should be published soon.
Re: new proXML version
Reply #5 - Nov 16th, 2006, 4:01am
 
Thanks! Very quick and helpful of you.
Re: new proXML version
Reply #6 - Jun 19th, 2009, 11:05am
 
hello...



i´m trying install the the ProXML. Unfortunately and as you can see the site is down for some time now.

If you please, where/how can I get the ProXML? Can you send this to me?



Thanks for your support.



BR, Rita

Re: new proXML version
Reply #7 - Aug 25th, 2009, 9:05am
 
Something is wrong with the web? I'm searching for the proxml to work with processing 1.0.6. The old version of proxml give me this error “The type XMLElement is ambiguous”.
Thanks for the help
David
Re: new proXML version
Reply #8 - Aug 26th, 2009, 7:34am
 
See xml, xmlPro, whatever (why so many people ask the same question in different threads today)
Page Index Toggle Pages: 1