Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help for xml
#10
The first step, would be to create valid xml. You probably don't want the content of each node to be "Count = {number}", either that should be another attribute, or the content should just be whatever number it is. Also, if your tag name is "drug1", your closing tag should also be "drug1". Having different opening and closing tags is...not valid xml.

So, instead of:
 <drug1 Name="Digoxin" Dosage ="20" Units="mL" Cost= "2.01">
     Count =27
 </start>
Try:
 <drug1 Name="Digoxin" Dosage ="20" Units="mL" Cost= "2.01" Count="27" />
Reply


Messages In This Thread
[split] xml (from json) - by just_started_python - Oct-31-2016, 05:19 PM
RE: need help for xml - by micseydel - Oct-31-2016, 08:18 PM
RE: need help for xml - by micseydel - Nov-01-2016, 02:22 AM
RE: need help for xml - by just_started_python - Nov-01-2016, 03:34 PM
RE: need help for xml - by metulburr - Nov-01-2016, 03:43 PM
RE: need help for xml - by micseydel - Nov-01-2016, 04:07 PM
RE: need help for xml - by nilamo - Nov-07-2016, 07:17 PM
RE: [split] xml (from json) - by micseydel - Oct-31-2016, 06:35 PM
need help for xml - by just_started_python - Oct-31-2016, 08:13 PM
need help for xml - by just_started_python - Nov-01-2016, 02:10 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020