XML – How to correctly quote gerss: Point to My XSD?

I am putting together an XSD framework to describe an existing GeoRSS feed, but I am stumped trying to use an external georss.xsd to verify georss type elements: point. I reduced this problem to a minimum Components of:

XML:



45.256 -71.92

XSD:

 xmlns:georss="http://www.georss.org/georss">
schemaLocation="http://georss.org/xml/1.1/georss.xsd"/>




< /xs:sequence>


If I set the apoint type to ” xs: string” instead of “georss: point”, XML will quickly validate the XSD, but as long as I quote the imported type (georss: point), my XML validator (Notepad | XML Tools) “cannot parse the schema” .What am I doing wrong?

In the context of the question, you are referring to a type that does not exist. The following is what you are using The content:

If you want to point the element, then you quote it (as you will do later). If you want to reuse the type (content model) with your own tags, then you The type of apoint should be doubleList.

It is not uncommon to reuse a type, because it is a way to maximize the XML namespace that is not needed from the instance XML (see Venetian blind authoring style ). In your case, you will implement namespaceless XML.

I am putting together an XSD schema to describe the existing GeoRSS feed, but I am stumbled to try Use external georss.xsd to verify elements of georss type: point. I simplified this problem to the smallest component:

XML:

 

45.256 -71.92

XSD:

 xmlns:georss= "http://www.georss.org/georss">
schemaLocation="http://georss. org/xml/1.1/georss.xsd"/>







If I set the apoint type to “Xs: string” instead of “georss: point”, XML will quickly validate the XSD, but as long as I quote the imported type (georss: point), my XML validator (Notepad | XML Tools) “cannot parse the schema “. What am I doing wrong?

In the context of the question, you are referring to a type that does not exist. Here is what you are using:

If you want a point element, then you quote it (as you did later). If you want to reuse the type (content model) with your own tags, then the type of your apoint should be doubleList.

Reusing a type is not uncommon, because it is a way to maximize the XML namespace that is “closed” from the instance XML (see Venetian blind authoring style). In your case, you will achieve none Namespace XML.

Leave a Comment

Your email address will not be published.