This Seminole example will add attributes to the nodes of an XML document that need units (and don't already have such an attribute).
To use this example you need a tool that can perform an HTTP POST such as curl. First it is necessary to put the XML document to be marked up in a file:
<measurements> <section1> <mass>0.5</mass> <temperature units="degF">98.6</temperature> </section1> <section2> <current>15</current> <potential>110</potential> <temperature>60.2</temperature> </section2> </measurements>
With that document saved in example.xml you can then invoke the XML markup service like this:
curl -X POST -d @example.xml http://localhost:8080/markup --header "Content-Type:text/xml"The returned document will have a units attribute added where necessary.