Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

XSD Generated from XFA Form

Avatar

Level 1

Hi,

We created a dynamic pdf form using Adobe LiveCycle. We used the export/import funcationality of the

Adobe Pro to  generate the XML from the pdf. We are trying to create an XSD of the exported XML.

But we are getting an error in the XSD itself. The error is "the schema referenced from this location in your document contains errors". , http://www.xfa.org/schema/xfa-data/1.0/

The below is the XSD we genrated.  Could you please help to resolve this issue.

<?xml version="1.0" encoding="utf-8"?>

<xs:schema xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace="http://www.xfa.org/schema/xfa-data/1.0/" />

<xs:element name="form1">

0 Replies

Avatar

Level 1

Is anybody from the Adobe livecycle development team is looking this thread?.

I haven't recived a reply for this issue. I am not sure who can help me on this.

Avatar

Level 10

What are you using to generate the schema? I use XMLSpy and have never had am issue.

Paul

Avatar

Level 1

I am using Visual Studio 2008 to create the schema. I use the export and

import functionality of the pdf to generate the xml. We can create a schema

using Visual studio automatically.

The issue is the below namespace. Is this namepsace exists?. I don't know.

I cannot resolve the below url. the site is not pinging.

http://www.xfa.org/schema/xfa-data/1.0/

Avatar

Level 10

Are you using the xdp format of the data or the xml version ...if I export as XML then I do not get that line and you can make your schema without issue.

Did you create a button to export your data?

Paul

Avatar

Level 1

No. I am using the Adobe pro 9 to export the XML. There is a option to

import/export data into xml

Avatar

Level 10

That link location definately does not exist ...let me look into it and get back to you.

Paul

Avatar

Level 1

Hi Paul,

Did you get a chance to take a look at it.

Avatar

Employee

The xfa namespace does not resolve to an actual resource. It is a unique URI that Adobe owns and we use to qualify the xfa prefix. Here is an exerpt from the W3C recommendation for namespaces:

As you can see, it is not a goal that the URI be directly usable. It's main goal is to provide a unique definition for a prefix - in our case xfa.

Avatar

Level 1

Can ypu provide a solution?. The imported XML from the pdf contians the references to XFA. Please see the below XML.  So the tool (Visual Studio) we are using to generate the XSD is generating the namespace. Is there is a solution to it.?.

<?xml version="1.0" encoding="UTF-8" ?>
- <form1>
- <RES>
- <ResData>
<RHeader xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup" />
- <Row1>