Package org.teiid.query.sql.symbol

Examples of org.teiid.query.sql.symbol.XMLAttributes


      helpTestExpression("xmlelement(\"table\", 'x')", "XMLELEMENT(NAME \"table\", 'x')", f);
    }
   
    @Test public void testXmlElementWithAttributes() throws Exception {
      XMLElement f = new XMLElement("y", new ArrayList<Expression>());
      f.setAttributes(new XMLAttributes(Arrays.asList(new DerivedColumn("val", new Constant("a")))));
      helpTestExpression("xmlelement(y, xmlattributes('a' as val))", "XMLELEMENT(NAME y, XMLATTRIBUTES('a' AS val))", f);
    }
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.symbol.XMLAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.