XML Input Error --> Xalan fatal error: Expected equal sig

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

XML Input Error --> Xalan fatal error: Expected equal sig

Post by bandish »

Hi,

I searched DsXchange and could not find any solution, So writing this query.

My Job structure is as below:

Code: Select all

Sequential File --> XML Input --> Dataset
Job is able to read data from the sequential file but no records are getting loaded in to the target dataset.

XML File Size: 4753 KB
Able to view XML in Internet explorer.
Able to open the XML doc in Microsoft Excel.

I am getting the following types of errors in my job:

Code: Select all

1. XML_Input_10,0: Info: XMLTest_Customer.XML_Input_10: Xalan fatal error (publicId: , systemId: , line: 1, column: 513):Expected equal sign

2. Info: XMLTest_Customer.XML_Input_10: Xalan fatal error (publicId: , systemId: , line: 1, column: 220): Expected comment or processing instruction

3. Info: XMLTest_Customer.XML_Input_10: Xalan fatal error (publicId: , systemId: , line: 1, column: 3): There are more end tags than start tags

4. Info: XMLTest_Customer.XML_Input_10: Xalan fatal error (publicId: , systemId: , line: 1, column: 1): Invalid document structure
One of the column values in XML file is :

Code: Select all

 "http://www.target.com/gp/search.html/ref=tgt_adv_XSGT0407?field-keywords=pink+kitty+cat&url=index%3Dtarget%26AFID%3DGoogle"
Can this column value be a problem in parsing the XML file?

Thanks
Bandish
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Should be all about your XPath expressions. Did you import the metadata for this from the file or an xsd? Or did you 'roll your own'?
-craig

"You can never have too many knives" -- Logan Nine Fingers
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

Hi,

I imported metadata from the xml file using XML Meta Data Importer.

The structure of my XML doc is:

Code: Select all

<?xml version="1.0" standalone="yes"?>
<report>
	<table>
		<columns>
			<column name="campaignid"/>
			<column name="adgroupid"/>
			<column name="keywordid"/>
			<column name="kwStatus"/>
			<column name="keywordMinCpc"/>
			<column name="creativeid"/>
			<column name="maxCpc"/>
			<column name="kwDestUrl"/>
			<column name="imps"/>
			<column name="clicks"/>
			<column name="cost"/>
			<column name="pos"/>
			<column name="conv"/>
		</columns>
		<rows>
			<row campaignid="11222678" adgroupid="382141298" keywordid="2177859818" kwStatus="Active" keywordMinCpc="30000" creativeid="500900138" maxCpc="150000" kwDestUrl="http://www.target.com/gp/search.html/ref=tgt_adv_XSGT0407?field-keywords=pet+food&url=index%3Dtarget%26AFID%3DGoogle" imps="17" clicks="0" cost="0" pos="9.176470588235293" conv="0"/>
			<row campaignid="11222678" adgroupid="382141298" keywordid="2591713118" kwStatus="Active" keywordMinCpc="30000" creativeid="500900138" maxCpc="150000" kwDestUrl="http://www.target.com/gp/search.html/ref=tgt_adv_XSGT0407?field-keywords=puppy+bowls&url=index%3Dtarget%26AFID%3DGoogle" imps="2" clicks="0" cost="0" pos="5.5" conv="0"/>
		</rows>
	</table>
	<totals>
		<grandtotal imps="1163893" clicks="18598" cost="2958460000" pos="5.6188438284275275" conv="0"/>
	</totals>
</report>
There are 13901 rows in this document, but I have only pasted 2 rows.

Thanks
Bandish
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

I do not think you can use sequential file as a input to xml input stage.

What is your xml source column in input tab of xml source stage?
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

Hi Bala,

I have already created few jobs with sequential file as source and they are working. But for this xml file I am not able to figure out the problem.

The source column name is DUMMY. Its datatype is Varchar and length 50000. I dont think so column name makes any difference in the job.

Thanks
Bandish
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

bandish wrote:Hi Bala,

I have already created few jobs with sequential file as source and they are working. But for this xml file I am not able to figure out the problem.

The source column name is DUMMY. Its datatype is Varchar and length 50000. I dont think so column name makes any difference in the job.

Thanks
Bandish
Interesting. I tried your approach but the same result. The data does not come out of xml input stage. There were no warnings or errors however.

You can try this design:

External Source ----> XML INPUT ----> DB

In external source stage specify unix "find" command to get xml file url.

In the input tab select column content as url.

This should work.
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

On the Stage --> General tab , have you checked the options to not reject fatal or error records. I think thats why you are not getting any warnings.

Will try the design suggested by you.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Oh yes i forgot to check it.

On running the job i get warnings similar to what you have got.

Below is the xml with which i ran the job. xml is very small.
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>AAAAAAA</to>
<from>BBBBBBB</from>
<heading>CCCCC</heading>
<body>DDDDDD</body>
</note>
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

I am able to run the job and load into a dataset using xml doc provided by you !
I think you are missing something in the format tab of source Sequential file.

Thanks
Bandish
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

bandish wrote:I am able to run the job and load into a dataset using xml doc provided by you !
I think you are missing something in the format tab of source Sequential file.

Thanks
Bandish
Can you furnish your format details?
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

Format details are as below:

Code: Select all

Record Level
Final Delimiter = none
Record Delimiter = null

Field Defaults
Delimiter = none
Quote = none
Thanks
Bandish
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Thanks it is loading now but for a few warnings which i need to fix.

In server jobs we usually have a folder stage instead of sequential file stage.

Is your problem solved?
bandish
Participant
Posts: 41
Joined: Tue Oct 11, 2005 1:30 am

Post by bandish »

No its still pending !
Just trying out by decreasing the size of my original xml file.
Post Reply