Advertisement

05.06.2004 at 09:12AM PDT, ID: 20980434
[x]
Attachment Details

XML Schema?  Best way to translate xml for output.

Asked by glasieer in Extensible Markup Language (XML), Extensible HTML (XHTML)

I wrote a web service that uses a D3 Pick database.  Currently, for some records data is returned like:

        <CoverageCd>
          <v1>FORRE</v1>
          <v2>VOL</v2>
        </CoverageCd>
        <StateProvCd>
          <v1>CT</v1>
          <v2>CT</v2>
        </StateProvCd>

It should really look like:

        <Group1>
          <CoverageCd>FORRE</CoverageCd>
          <StateProvCd>CT></StateProvCd>
        </Group1>
        <Group2>
          <CoverageCd>VOL</CoverageCd>
          <StateProvCd>CT</StateProvCd>
        </Group2>

What is the best way to do this?  I know that I can re-write the code that creates the xml to accomidate but I would rather not if there is an easier way.  (The code is fairly complex and I would have to change the technique in which it is written.)  I've done some research on schema's but I haven't found a way to do it.  ThanksStart Free Trial
[+][-]05.06.2004 at 12:16PM PDT, ID: 11008912

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Markup Language (XML), Extensible HTML (XHTML)
Sign Up Now!
Solution Provided By: Yury_Delendik
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.06.2004 at 01:23PM PDT, ID: 11009498

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2004 at 01:43PM PDT, ID: 11009666

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2004 at 02:08PM PDT, ID: 11009888

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 01:05PM PDT, ID: 11053427

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 01:14PM PDT, ID: 11053509

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2004 at 02:02PM PDT, ID: 11063425

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2004 at 02:11PM PDT, ID: 11063492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2004 at 06:13AM PDT, ID: 11088693

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32