You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/08/13 00:29:21 UTC

DO NOT REPLY [Bug 11644] New: - [PATCH] XMLDOC: an xml typedef for the embed proposal jxpath

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11644>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11644

[PATCH] XMLDOC: an xml typedef for the embed proposal jxpath

           Summary: [PATCH] XMLDOC: an xml typedef for the embed proposal
                    jxpath
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: nicolaken@apache.org


XMLDOC is a typedes that can be used in the embed proposal.
It loads an xml file as a DOM, thus making it available to jxpath.
Example: 

    <!-- This is XMLDOM.java - a datatype that holds an xml DOM  -->
    <typedef name="xmldom" classname="org.apache.tools.ant.types.XMLDOM"/>

    <!-- Init XMLDOM. The DOM of file test.xml will be referenced via the id-->
    <xmldom id="test.xml" file="test.xml"/> 

    <echo message="XMLDOM: ${jxpath:/references/test.xml/root/project/@name}" />

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>