Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

difficulties with xml

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69288] difficulties with xml
  • From: Pascal Mercier <pascalmercier at shaw.ca>
  • Date: Tue, 5 Sep 2006 05:31:07 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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}] }]}]


  • Prev by Date: Re: scaled complementary error function in Mathematica?
  • Next by Date: Re: Problems with NMaximize.
  • Previous by thread: Re: Trigonometric simplification
  • Next by thread: Re: difficulties with xml