|
List XML element names/attribute
See http://taporware.mcmaster.ca/~taporware/xmlTools/listxml.shtml
|
|
Description
This tool is used to display elements contained in an XML document. This tool also allows the user to count all instances of an element and to view the structure/hierarchy of the document. It also provides a variety of tools for listing attributes and attribute values.
|
< < |
History
|
|
Pseudocode
|
> > |
- Get input xml text either from user's local disk or from user specified URL
- Go through the entire xml text and record all the element name, along with the related attibute names and values.
- Process the the above records based on user specification and generate corresponding output
|
|
Ways of Using
|
> > |
- Enter text source in "Source text" panel, either a effective xml text URL in the URL field or a xml file path in your local disk
- Select what tou want to see from the "List options" panel.
- For each selection above, you have feuther selection of the details
- Select results display format from the "Results" panel.
|
|
CGI Interface
|
> > |
If you want to use this tool from your web site, here is the CGI Interface:
(Note: You need to use attribute name/value pair: enctype="multipart/form-data" within the form tag because the tool was to designed to allow local file uploading even if you do not use this feature)
Here are the parameters:
| Parameter Name | Parameter Value | Control Type | Default | Discription |
| source | url/local | radio button | url | specify the source location |
| xmlurl | | text field | | A valid url corresponding to the value url of the parameter source |
| localFile | | file | | enter or browse to get the local file path |
| HowToList | 1/2/3 | radio button | 1 | allow user to select the way of element listings |
| countElem | | checkbox | false | indicate if the element will be counted for HowToList (1) |
| averageword | | checkbox | false | indicate if the average words in each element will be listed |
|
|
Web Service Interface
Known Bugs
|