• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML help

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I want to know how & where we have to use the "Element", and the "If" statement, help me. Thank u All.
Bye,
P.Sivaraj.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Umm. Could you elaborate a bit? I have no clue which "Element" you're talking about and what "If" you're talking about?
 
P.Sivaraj
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse Koskela,
Thanks for ur reply, the details are as follows
This is an example for that Using "Element", In the requirement it will be like this

fbjh 3
fbdj 8 � ADD_RECORD_LEN

if we get like this means we have to use "Element" like the below one

<element>
<tag> </tag>
<dbname> </dbname>
<range/>
<description> </description>
<repeat>
<count>
<formula> </formula>
</count>
<element>
<tag> </tag>
<dbname> </dbname>
<range/>
<description>Rec of ordq records.</description>
<value name=" ">
<tag> </tag>
<dbname> </dbname>
<type>uintbits</type>
<length>
<constant>8</constant>
</length>
<range/>
<description> </description>
</value>
</element>
</repeat>
</element>




In our company we will be changing the Requirements into an XML file Like the above for Java operation, they had used "Element" in that how to use that one. As i am new to this one i dont know how to do that please
Help me,
bye,
P.Sivaraj.

[ March 16, 2005: Message edited by: p.sivaraj raj ]
[ March 16, 2005: Message edited by: p.sivaraj raj ]
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by p.sivaraj raj:
fbjh 3
fbdj 8 � ADD_RECORD_LEN


Could you explain what this means? I'm only seeing the "8" in the XML snippet you posted (you really should try to use the UBB CODE tags when posting code, by the way -- that'll preserve indentation).

Originally posted by p.sivaraj raj:
In our company we will be changing the Requirements into an XML file like the above for Java operation, they had used "Element" in that how to use that one. As i am new to this one i dont know how to do that


I still don't understand what you're asking.

Are you asking how to create (write) an XML document using Java?
Are you asking how to parse (read) an XML document using Java?
Are you asking how to extract the contents of some specific <element/> from an XML document using Java?
Something else?

Have you already looked through the code examples at javaalmanac.com? What about our own XML FAQ?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic