Skip Navigation LinksHome : CBC Classes : XML : Schemas : XMLPad Notes

XML - XMLPad Notes

XMLPad can be used to create an validate XML documents and schemas, but it has a few quirks.

Quirk 1

When you first open XMLPad it tries to connect to some web site to read an RSS file. This may take quite a bit of time, or even error off. Try and be patient, it will open sooner or later.

Quirk 2

The only time XMLPad reads the schema file is when the XML data file is opened. If you make any changes to the schema, XMLPad will not see them until the XML data file is closed an opened again. So if you make any changes to the schema you have to save the XML schema file, close the XML data file, reopen the XML data file, and then do the validation. Yes ... you have to close and reopen your XML data file everytime you make a change to the schema. (sigh)

Quirk 3

When you create a new schema (.xsd file), XMLPad asks you what you want to use for the Target Namespace. Just leave this blank and click Next. The next screen asks about Schema extensions, which you can also skip by clicking Finish. The schema template that XMLPad creates looks like this:

  <?xml version = "1.0" encoding = "utf-8"?>
  <xs:schema xmlns:xs=""
    elementFormDefault="qualified" attributeFormDefault="unqualified">


Notice that it uses the namespace prefix xs. A lot of people like to use xsd. If you want to change the prefix, do it now, while you only have to change it in a couple of places. You can also get rid of the elementFormDefault="qualified" attributeFormDefault="unqualified" If you make these changes your schema will look like this:

  <?xml version = "1.0" encoding = "utf-8"?>
  <xsd:schema xmlns:xsd="">