/** * Returns <code>true</code> or <code>false</code> depending on whether the given {@link XMLNode} * object contains valid XHTML content. * * <p>In SBML, the content of the 'notes' subelement available on {@link SBase}, as well as the * 'message' subelement available on {@link Constraint}, must conform to <a target='_blank' * href='http://www.w3.org/TR/xhtml1/'>XHTML 1.0</a> (which is simply an XML-ized version of * HTML). However, the content cannot be <em>entirely</em> free-form; it must satisfy certain * requirements defined in the <a target='_blank' * href='http://sbml.org/Documents/Specifications'>SBML specifications</a> for specific SBML * Levels. This method implements a verification process that lets callers check whether the * content of a given {@link XMLNode} object conforms to the SBML requirements for 'notes' and * 'message' structure. * * <p>An aspect of XHTML validity is that the content is declared to be in the XML namespace for * XHTML 1.0. There is more than one way in which this can be done in XML. In particular, a * model might not contain the declaration within the 'notes' or 'message' subelement itself, but * might instead place the declaration on an enclosing element and use an XML namespace prefix * within the 'notes' element to refer to it. In other words, the following is valid: <div * class='fragment'> * * <pre> * <sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3' * xmlns:xhtml='http://www.w3.org/1999/xhtml'> * <model> * <notes> * <xhtml:body> * <xhtml:center><xhtml:h2>A Simple Mitotic Oscillator</xhtml:h2></xhtml:center> * <xhtml:p>A minimal cascade model for the mitotic oscillator.</xhtml:p> * </xhtml:body> * </notes> * ... rest of model ... * </sbml> * </pre> * * </div> Contrast the above with the following, self-contained version, which places the XML * namespace declaration within the <code><notes></code> element itself: <div * class='fragment'> * * <pre> * <sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'> * <model> * <notes> * <html xmlns='http://www.w3.org/1999/xhtml'> * <head> * <title/> * </head> * <body> * <center><h2>A Simple Mitotic Oscillator</h2></center> * A minimal cascade model for the mitotic oscillator.</p> * </body> * </html> * </notes> * ... rest of model ... * </sbml> * </pre> * * </div> * * <p>Both of the above are valid XML. The purpose of the <code>sbmlns</code> argument to this * method is to allow callers to check the validity of 'notes' and 'message' subelements whose XML * namespace declarations have been put elsewhere in the manner illustrated above. Callers can can * pass in the {@link SBMLNamespaces} object of a higher-level model component if the {@link * XMLNode} object does not itself have the XML namespace declaration for XHTML 1.0. * * <p> * * @param xhtml the {@link XMLNode} to be checked for conformance. * @param sbmlns the {@link SBMLNamespaces} associated with the object. * <p> * @return <code>true</code> if the {@link XMLNode} content conforms, <code>false</code> * otherwise. * <p> * @docnote The native C++ implementation of this method defines a default argument value. In the * documentation generated for different libSBML language bindings, you may or may not see * corresponding arguments in the method declarations. For example, in Java, a default * argument is handled by declaring two separate methods, with one of them having the argument * and the other one lacking the argument. However, the libSBML documentation will be * <em>identical</em> for both methods. Consequently, if you are reading this and do not see * an argument even though one is described, please look for descriptions of other variants of * this method near where this one appears in the documentation. */ public static boolean hasExpectedXHTMLSyntax(XMLNode xhtml) { return libsbmlJNI.SyntaxChecker_hasExpectedXHTMLSyntax__SWIG_1(XMLNode.getCPtr(xhtml), xhtml); }
public void AddXMLSibling(XMLNode psNewSibling) { gdalJNI.XMLNode_AddXMLSibling(swigCPtr, this, XMLNode.getCPtr(psNewSibling), psNewSibling); }
/** * Returns <code>true</code> or <code>false</code> depending on whether the given {@link XMLNode} * object contains valid XHTML content. * * <p>In SBML, the content of the 'notes' subelement available on {@link SBase}, as well as the * 'message' subelement available on {@link Constraint}, must conform to <a target='_blank' * href='http://www.w3.org/TR/xhtml1/'>XHTML 1.0</a> (which is simply an XML-ized version of * HTML). However, the content cannot be <em>entirely</em> free-form; it must satisfy certain * requirements defined in the <a target='_blank' * href='http://sbml.org/Documents/Specifications'>SBML specifications</a> for specific SBML * Levels. This method implements a verification process that lets callers check whether the * content of a given {@link XMLNode} object conforms to the SBML requirements for 'notes' and * 'message' structure. * * <p>An aspect of XHTML validity is that the content is declared to be in the XML namespace for * XHTML 1.0. There is more than one way in which this can be done in XML. In particular, a * model might not contain the declaration within the 'notes' or 'message' subelement itself, but * might instead place the declaration on an enclosing element and use an XML namespace prefix * within the 'notes' element to refer to it. In other words, the following is valid: <div * class='fragment'> * * <pre> * <sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3' * xmlns:xhtml='http://www.w3.org/1999/xhtml'> * <model> * <notes> * <xhtml:body> * <xhtml:center><xhtml:h2>A Simple Mitotic Oscillator</xhtml:h2></xhtml:center> * <xhtml:p>A minimal cascade model for the mitotic oscillator.</xhtml:p> * </xhtml:body> * </notes> * ... rest of model ... * </sbml> * </pre> * * </div> Contrast the above with the following, self-contained version, which places the XML * namespace declaration within the <code><notes></code> element itself: <div * class='fragment'> * * <pre> * <sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'> * <model> * <notes> * <html xmlns='http://www.w3.org/1999/xhtml'> * <head> * <title/> * </head> * <body> * <center><h2>A Simple Mitotic Oscillator</h2></center> * A minimal cascade model for the mitotic oscillator.</p> * </body> * </html> * </notes> * ... rest of model ... * </sbml> * </pre> * * </div> * * <p>Both of the above are valid XML. The purpose of the <code>sbmlns</code> argument to this * method is to allow callers to check the validity of 'notes' and 'message' subelements whose XML * namespace declarations have been put elsewhere in the manner illustrated above. Callers can can * pass in the {@link SBMLNamespaces} object of a higher-level model component if the {@link * XMLNode} object does not itself have the XML namespace declaration for XHTML 1.0. * * <p> * * @param xhtml the {@link XMLNode} to be checked for conformance. * @param sbmlns the {@link SBMLNamespaces} associated with the object. * <p> * @return <code>true</code> if the {@link XMLNode} content conforms, <code>false</code> * otherwise. * <p> * @docnote The native C++ implementation of this method defines a default argument value. In the * documentation generated for different libSBML language bindings, you may or may not see * corresponding arguments in the method declarations. For example, in Java, a default * argument is handled by declaring two separate methods, with one of them having the argument * and the other one lacking the argument. However, the libSBML documentation will be * <em>identical</em> for both methods. Consequently, if you are reading this and do not see * an argument even though one is described, please look for descriptions of other variants of * this method near where this one appears in the documentation. */ public static boolean hasExpectedXHTMLSyntax(XMLNode xhtml, SBMLNamespaces sbmlns) { return libsbmlJNI.SyntaxChecker_hasExpectedXHTMLSyntax__SWIG_0( XMLNode.getCPtr(xhtml), xhtml, SBMLNamespaces.getCPtr(sbmlns), sbmlns); }
public void AddXMLChild(XMLNode psChild) { gdalJNI.XMLNode_AddXMLChild(swigCPtr, this, XMLNode.getCPtr(psChild), psChild); }