Re: Creating a Child Record with a different Namespace

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Mike,

> here is the Schema I constructed :

I'm not quite sure what the problem you're having is (that is, I don't
understand quite well what you mean).

I took your schema, and changed the Person node to be
minOccurs=1,maxOccurs=1, and the flat file dissasembler correctly generates
three separate output documents as expected.

Checking further, I see that what might be confusing is that the output
documents look like this:

<CSV xmlns="http://CitizenChanges.Input";>
<Person xmlns="">
<Forename>Ritchie</Forename>
<Surname> Terrance</Surname>
<PersonID> ID10001</PersonID>
</Person>
</CSV>

As you can see, the <Person> element is in the default empty namespace
instead of the one the <CSV> node is in. If this is your concern, then that
is easily fixable, just change at the schema level the element form default
property to "qualified" instead of "unqualified", which is the default
value.


--
Tomas Restrepo
tomasr@xxxxxxxx
http://www.winterdom.com/


.



Relevant Pages

  • Re: What is the logic of storing XML in a Database?
    ... Does that mean that CSV data with a header can't be validated? ... proprietary schema format for flatfiles and sell a proprietary tool ... for validating a CSV file that conforms to the flat file. ...
    (comp.databases.theory)
  • Re: BizTalk 2006 RT2 > BizTalk Mapping
    ... schema in a BizTalk application? ... I have 15 .csv files which I suppose to import in commerce server. ... -Create maps for each of the .csv schemas (1_to_Int.btm, ...
    (microsoft.public.biztalk.general)
  • SED: Insert Token at specific points
    ... we Data (CSV) files with following schema ... And we want insert empty values at position 3 and 5 ... the pattern will be to big. ...
    (comp.unix.shell)
  • Possible to Extract data from .dat files?
    ... ..dat files to a more common format so that I can re-use the data (Plain ... text, CSV, XML, anything?) ... I do have all the DB schema for all the ...
    (comp.databases.sybase)