No announcement yet.

How to parse a complexe XML file

This topic is closed.
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to parse a complexe XML file

    Could you please tell me How I can access for Definition and Price values using untangle, I got always errors messages like AttributeError: 'list' object has no attribute

    HTML Code:
    			<Program fragmentId="7cc4" fragmentVersion="100" xml:lang="Eng">
    				<Program cr="tes2354502"/>
    					<Genre href="metadata:" type="other">
    						<[B]Definition[/B] xml:lang="Eng"></Definition>
    					<Genre href="2010:profile" type="other">
    						<Definition xml:lang="Eng">MPEG</Definition>
    						<PurchaseItem start="2016-09-05T19:00:33.253Z" end="2021-09-05T14:35:00Z">
    							<[B]Price[/B] currency="EUR">0</Price>
    								<PurchaseType href=":availabilityWindow"/>
    								<PurchaseType href="productCrid">
    						<BitRate maximum="3750000">3750000</BitRate>
    							<MixType href="ioPresentationCS:2010:3">
    								<Name xml:lang="en">Stereo</Name>
    								<Definition xml:lang="en">Stereog</Definition>
    							<Coding href="urn:CS:2001">
    								<Name xml:lang="Eng">MPEG2-TS</Name>
    					<MemberOf xsi:type="MemberOfType" cr="-8dde-f33302c3918f"/>
    					<OtherIdentifier type="Vod" organization="ntis" authority="tis">83c8-8dee2531d018</OtherIdentifier>
    					<OtherIdentifier type="PAID" organization="ntis" authority="eventis"></OtherIdentifier>

  • #2
    This has nothing to do with the Untangle product

    Are you maybe looking for this product instead:


    If so, try asking your question over on Be sure to include the python code you've tried.
    Last edited by jcoehoorn; 11-15-2016, 10:18 AM.
    Five time Microsoft ASP.Net MVP managing a Lenovo RD330 / E5-2420 / 16GB with Untangle 16.5.2 to protect a 1Gbps fiber link for ~450 residential college students and associated staff and faculty