Display XML in a javadoc
2014-08-02 09:08
197 查看
Let's say you have a comment like this
The XML will not be visible since it will embedded in the HTML as tag and not as text.
With Javadoc 1.5, you can use the {@code ... } command. :
With the previous versions, one way was to add a space after the <.
http://www.rgagnon.com/javadetails/java-0623.html
/** * To use this class use this XML * * <xml> * <parameter>foo</parameter> * <value>bar</value> * </xml> * */
The XML will not be visible since it will embedded in the HTML as tag and not as text.
With Javadoc 1.5, you can use the {@code ... } command. :
/** * To use this class use this XML * <pre> * {@code * <xml> * <parameter>foo</parameter> * <value>bar</value> * </xml> * } * </pre> */
With the previous versions, one way was to add a space after the <.
/** * To use this class use this XML * <pre> * < xml> * < parameter>foo< /parameter> * < value>bar< /value> * < /xml> * } * </pre> */
http://www.rgagnon.com/javadetails/java-0623.html
相关文章推荐
- Display XML in AxSHDocVw.AxWebBrowser
- XML userd in Java -----A DOM EXAMPLE
- A simple way to read an XML file in Java
- This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the ...
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- java: what's new in tiger(jdk1.5) xml
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application的解决办法
- [PHP] To display some attribute of the node in the XML document.
- 关于The absolute uri: http://java.sun.com/jstl/core_rt cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- 【读网】最火网站背后的脚本语言,2007年XML十大预测,Java in 2007,Windows Vista内核揭密……
- Hi there,Error:The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files
- Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
- jstl学习常见错误一: The absolute uri: http://java.sun.com/jst/core cannot be resolved in either web.xml or the jar files deployed with
- XML userd in Java -----A DOM EXAMPLE
- Can I use Java, ActiveX, etc in XML files?
- XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application
- [转]how to programatically access built-in properties of open xml word doc(如何读取open xml格式文档属性)
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar