Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML help

 
P.Sivaraj
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic