aspose file tools*
The moose likes Struts and the fly likes How do i know what are the elements ,subments ,attributes in a xml file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How do i know what are the elements ,subments ,attributes in a xml file ?" Watch "How do i know what are the elements ,subments ,attributes in a xml file ?" New topic
Author

How do i know what are the elements ,subments ,attributes in a xml file ?

Jyothi Sree
Ranch Hand

Joined: Jun 14, 2010
Posts: 41
For a struts2 application i have used validations using the validation.xml

In that i use various elements , How do i know ,what are the elements ,subelemts are there ,and what are the attributes for them ,what are the values i shoukd use for the attributes ....?

I have saw in the dtd url mentioned in DOCTYPE but there is no detail information about the elements ...


Thank
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

I think you should go for XML then you can uderstand what is DTD and how to create XML file from that .
After that you can get what are element ,attribute.
Jyothi Sree
Ranch Hand

Joined: Jun 14, 2010
Posts: 41

I mean to say that while creating the validation file ,I am not knowing what will the value for the attributes in the elements
for ex.

<field-validator type="requiredstring"> what all the values type attribute of <feild-validator > element with have ,how are they used ....

like that where can i find detail information of an element ,its subelemts ,its attributes ,the attribute values .........
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

Sorry I take it wrog
It means you need details information about that attributes and elements
Its better to go with struts documentation or any good book
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The Struts 2 documentation?

http://struts.apache.org/2.1.8/docs/validation.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i know what are the elements ,subments ,attributes in a xml file ?
 
Similar Threads
XML design question
Rendering XML element attributes
Could you transform xml into a diff't xml
Access hidden field value in XSL
List Objects in Form Bean has null values...mostly