Can a Dataset export Multiple Namespaces to XML

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have data that I need to convert and manipulate to export to XML. I am having trouble figuring out how to handle the plethora of namespaces that the document requires and I am lacking experience in the area of transforming datasets to XML.
So the question is, can you export a dataset with multiple namespaces like below or do i have to write my own XML writer using XElements and such. I guess in furtherance to that question if you can do it with datasets where are the resources to help me understand
how i can do this.


<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; "<span style="color:Blue; ?>
<span style="color:Blue; <<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; ESFSubmission <span style="color:Red; xmlns:esf<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.for.gov.bc.ca/schema/esf<span style="color:Black; " <span style="color:Red; xmlns:mof<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.for.gov.bc.ca/schema/base<span style="color:Black; " <span style="color:Red; xmlns:fsp<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.for.gov.bc.ca/schema/fsp<span style="color:Black; " <span style="color:Red; xmlns:gml<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.opengis.net/gml<span style="color:Black; " <span style="color:Red; xmlns:xlink<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.w3.org/1999/xlink<span style="color:Black; " <span style="color:Red; xmlns:xsi<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.w3.org/2001/XMLSchema-instance<span style="color:Black; " <span style="color:Red; xsi:schemaLocation<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.for.gov.bc.ca/schema/esf http://www.for.gov.bc.ca/schema/esf/1/xsd/MOF/esf-submission.xsd http://www.for.gov.bc.ca/schema/fsp http://www.for.gov.bc.ca/schema/fsp/3/xsd/MOF/mof-fsp.xsd<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; submissionMetadata<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; emailAddress<span style="color:Blue; >Barney.Dinosaur@canfor.com<span style="color:Blue; </<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; emailAddress<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; telephoneNumber<span style="color:Blue; >2509999999<span style="color:Blue; </<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; telephoneNumber<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; submissionMetadata<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; esf<span style="color:Blue; :<span style="color:#A31515; submissionContent<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fspSubmission<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; boundedBy<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; null<span style="color:Blue; >inapplicable<span style="color:Blue; </<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; null<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; boundedBy<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fspSubmissionMetadata<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenseeContact<span style="color:Blue; >Barney The Dinosaur<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenseeContact<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; telephoneNumber<span style="color:Blue; >25099999999<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; telephoneNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; emailAddress<span style="color:Blue; >Barney.Dinosaur@canfor.com<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; emailAddress<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; attachmentCount<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; attachmentCount<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fspSubmissionMetadata<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; submissionItem<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; forestStewardshipPlan<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; boundedBy<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; null<span style="color:Blue; >inapplicable<span style="color:Blue; </<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; null<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; boundedBy<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fspID<span style="color:Blue; >17<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fspID<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentID<span style="color:Blue; >11<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentID<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planName<span style="color:Blue; >FSP 17 Canfor Radium<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenseeAmendmentName<span style="color:Blue; >11<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenseeAmendmentName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; actionCode<span style="color:Blue; >A<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; actionCode<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planHolderList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >00001271<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >00002341<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >00127158<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; clientCode<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planHolderList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermYears<span style="color:Blue; >5<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermYears<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermMonths<span style="color:Blue; >60<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermMonths<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermExpiry<span style="color:Blue; >2011-03-09<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; planTermExpiry<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; districtCodeList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; districtCode<span style="color:Blue; >DRM<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; districtCode<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; districtCodeList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentInd<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentComment<span style="color:Blue; >Amend FDU 114-Brewer/Dutch<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentComment<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentApprovalRequiredInd<span style="color:Blue; >false<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; amendmentApprovalRequiredInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; legalDocConsolidatedInd<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; legalDocConsolidatedInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fduUpdateInd<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fduUpdateInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; identifiedAreasUpdateInd<span style="color:Blue; >false<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; identifiedAreasUpdateInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; stockingStandardUpdateInd<span style="color:Blue; >false<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; stockingStandardUpdateInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; frpa197Ind<span style="color:Blue; >false<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; frpa197Ind<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; transitionalInd<span style="color:Blue; >false<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; transitionalInd<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fduList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fdu<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fduName<span style="color:Blue; >I09-Grave<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; fduName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >A75431<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >A18979<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >A78604<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >A86451<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceNumber<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; licenceList<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; fsp<span style="color:Blue; :<span style="color:#A31515; extentOf<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; Polygon <span style="color:Red; srsName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; EPSG:42102<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; outerBoundaryIs<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; LinearRing<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; gml<span style="color:Blue; :<span style="color:#A31515; coordinates<span style="color:Blue; >1737145.685247986,651504.664918053
[/code]



View the full article
 
Back
Top