From de968b48914ecbd141f19c7a462a6d7043565cb6 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Wed, 15 Nov 2006 16:12:22 +0000 Subject: [PATCH] fix example xml. BZ 40975. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475291 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/antstructure.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/manual/CoreTasks/antstructure.html b/docs/manual/CoreTasks/antstructure.html index 3d9af67f8..252cb24f9 100644 --- a/docs/manual/CoreTasks/antstructure.html +++ b/docs/manual/CoreTasks/antstructure.html @@ -69,7 +69,7 @@ element of this task - see the example below.

Examples

-<antstructure output="project.dtd"/>
+<antstructure output="project.dtd" />
 

Emitting your own structure instead of a DTD

@@ -87,17 +87,14 @@ public class MyPrinter implements AntStructure.StructurePrinter {

and then use it via typedef

-  <typedef name="myprinter" classname="org.example.MyPrinter"/>
+  <typedef name="myprinter" classname="org.example.MyPrinter" />
   <antstructure output="project.my">
-    <myprinter/>
-  <antstructure>
+    <myprinter />
+  </antstructure>
 

Your own StructurePrinter can accept attributes and nested elements just like any other Ant type or task.

- - -