On Your Own

Here’s an abbreviated step-by-step exercise for removing a namespace (in this case, my:) from a form:

  1. Copy the ContactsCh4.xml file you created in the section “Replacing the my: Namespace with a Different Name” to a new folder—in this example, My Documents\InfoPath\ContactsNoNS.

  2. Replace all instances of my: with nothing (by leaving the Replace With text box empty).

  3. Remove the InfoPath PIs and the namespace and language attributes from the root contacts element so that it appears as <contacts>.

  4. Save the file as ContactsNoNs.xml with UTF-8 encoding.

  5. Use the Data Source Wizard to create a data source for the new template.

  6. Copy the form sections and controls from ContactsCh4.xsn.

  7. Bind the sections and controls to the appropriate groups and ...

Get Introducing Microsoft® Office InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.