aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML help" Watch "XML help" New topic
Author

XML help

P.Sivaraj
Ranch Hand

Joined: Mar 10, 2005
Posts: 31
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Umm. Could you elaborate a bit? I have no clue which "Element" you're talking about and what "If" you're talking about?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
P.Sivaraj
Ranch Hand

Joined: Mar 10, 2005
Posts: 31
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: XML help