|
[Date Index]
[Thread Index]
[Author Index]
Re: Re: difficulties with xml
- To: mathgroup at smc.vnet.net
- Subject: [mg69345] Re: [mg69320] Re: [mg69288] difficulties with xml
- From: "Maarten van der Burgt" <maarten.vanderburgt at icos.be>
- Date: Thu, 7 Sep 2006 23:58:33 -0400 (EDT)
Pascal,
The section on Manipulating XML Data in the Help of Mathematica 5.2 was
very usefull for me a few days ago when I wanted to extract numbers from an
XML file.
http://documents.wolfram.com/mathematica/Add-onsLinks/XMLCapabilities/TransformingXML/ManipulatingXMLData.html
Maarten
"Chris
Chiasson" To: mathgroup at smc.vnet.net
<chris@chiass cc:
on.name> Subject: [mg69345] [mg69320] Re: [mg69288] difficulties with xml
07/09/2006
10:30
What exactly do you want to do with the XML? Obviously, you will have
a difficult time accessing the attributes by using part indices
because it is so deeply nested (and may even have some type of
conditional structure). If you can provide a word problem description
of specifically what you want to do, I could try giving you some
direction.
On 9/5/06, Pascal Mercier <pascalmercier at shaw.ca> wrote:
> Dear all,
>
> I am having problems accessing and changing xml attributes/properties
> after importing an xml file and I'm looking for some help.
>
> z=Import["xmltest.xml","XML"];
>
> part of z looks like the following (sorry for the long lines here)
>
> XMLElement[ensemble, {ensemble->1}, { XMLElement[peak, {peakID->1},
> { XMLElement [freq,{},{3.123}] , XMLElement [vol,{},{12.12}] } ] ,
> XMLElement[peak, {peakID->2}, { XMLElement [freq,{},{8.101}] ,
> XMLElement [vol,{},{0.552}] }]}]
> XMLElement[ensemble, {ensemble->2}, { XMLElement[peak, {peakID->1},
> { XMLElement [freq,{},{6.163}] , XMLElement [vol,{},{2.111}] } ] ,
> XMLElement[peak, {peakID->2}, { XMLElement [freq,{},{12.884}] ,
> XMLElement [vol,{},{0.221}] }]}]
>
--
http://chris.chiasson.name/
Prev by Date:
Re: Fit rectangle to set of points
Next by Date:
Re: Why doesn't Mathematica solve this simple differential equation?
Previous by thread:
Re: difficulties with xml
Next by thread:
Re: difficulties with xml
|