public void test_SyntaxChecker_validXHTML()
{
XMLToken token;
XMLNode node;
XMLTriple triple = new XMLTriple("p", "", "");
XMLAttributes att = new XMLAttributes();
XMLNamespaces ns = new XMLNamespaces();
ns.add( "http://www.w3.org/1999/xhtml", "");
XMLToken tt = new XMLToken("This is my text");
XMLNode n1 = new XMLNode(tt);
token = new XMLToken(triple,att,ns);
node = new XMLNode(token);
node.addChild(n1);
assertTrue( SyntaxChecker.hasExpectedXHTMLSyntax(node,null) == false );
triple = new XMLTriple("html", "", "");
ns.clear();
token = new XMLToken(triple,att,ns);
node = new XMLNode(token);
node.addChild(n1);
assertTrue( SyntaxChecker.hasExpectedXHTMLSyntax(node,null) == false );
}