XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 27th, 2012, 03:56 AM
thomo03 thomo03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 1 thomo03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 23 sec
Reputation Power: 0
XML and child node? problem

Hi Guys. I'm hoping somebody will be able to help. I'm loading a program which ready XML as it's config file.

The XML looks like this
Code:
<?xml version="1.0" encoding="utf-8" ?> <Mappings xmlns="http://awebsite.comMappingsSchema.xsd"> <!-- UI Strings --> <Text> <MainLabel>Select the Category and Type of the scanned document from the dropdowns below</MainLabel> <FormTitle>Generic Validation</FormTitle> <CategoryLabel>Category:</CategoryLabel> <TypeLabel>Type:</TypeLabel> <SubTypeLabel>Sub-type:</SubTypeLabel> </Text> <Category name="LIVE"> <Type name="DOC"> <Field name="Reference" value="6" /> <Field name="DOCTITLE" value="name"/> </Type> <Type name="HEALTH"> <Field name="Reference" value="1" /> <Field name="DOCTITLE" value="HealthLet"/> </Type> </Category> </Mappings>


It works well, and the program displays these choices in a select menu. If you choose LIVE another menu appears and you can choose from DOC or HEALTH. The selection is exported into either location 6 or 1. Does this make sense?

The problem is that there are LOTS! of categories to do. It can be done by hand but will take an age!

I tried searching to convert these into a XML schema for excel to export these. It mapped fine, but then wouldn't export stating the information was denormalized and that it had lists of list.

I looked into this and as far as I can see the Child? of the Node? is the
Code:
<Field name="Reference"/>
which is causing the problem.

So I tried the following.

Code:
<?xml version="1.0" encoding="utf-8" ?> <Mappings xmlns="http://awebsite.com/MappingsSchema.xsd"> <!-- UI Strings --> <Text> <MainLabel>Select the Category and Type of the scanned document from the dropdowns below</MainLabel> <FormTitle>Generic Validation</FormTitle> <CategoryLabel>Category:</CategoryLabel> <TypeLabel>Type:</TypeLabel> <SubTypeLabel>Sub-type:</SubTypeLabel> </Text> <Category name=DOC"> <Type name="DOCTITLE"> <Field name="Reference" value="6" /> <Field name="Wisdom Document Title" value="FISS CLSUM"/> </Type> <Type name="HEALTH"> <Field name="Reference" value="1" /> <Field name="Wisdom Document Title" value="FAM CHRON"/> </Type> </Category> </Mappings>


But this caused an error.

I also wonder if the Schema needed changing on the
Code:
<Mappings xmlns="http://awebsite.com/MappingsSchema.xsd">
However I have been to the website and that file doesn't exist
(I have changed the website domain for security reasons)

Is there anybody who could help. It would be much appreciated.

Kind regards

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML and child node? problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap