2

There's a small bug on rendering markdown visible in this answer and copied here.The following seems to work just fine:

val schemaXml = <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                  <xsd:element name="foo"/>
                </xsd:schema>
val schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);

But when the extra lines are added:

val schemaXml = <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                  <xsd:element name="foo"/>
                </xsd:schema>
val schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);

// not possible, but what I want:
// val schema = schemaFactory.newSchema(schemaXml)

The SchemaFactory.newInstance line and the closing XML tag) is all rendering as if it were a literal String

0

I'm not sure if Google prettify, which is what we use for syntax highlighting, supports this:

http://code.google.com/p/google-code-prettify/

  • Not that I necessarily think that this is the case here but would you considering committing patches to prettify if it could be fixed? – oxbow_lakes Nov 24 '09 at 16:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .