Originally posted by: SystemAdmin
Hi all, I'm having a problem with xpath. The map i'm using creates an error file based on the audit log that another map creates and an xml file. When this xml is rather big (about 3 mb), it takes 7 hours to complete taking CPU usage to 100% the whole time and freezing everything, including the Command server window, for long periods of time.
In one of the rules, I have several Xpath functions to search different fields in the xml, and I'm using it like this:
xmllib->XPATH(PACKAGE(Global:Rejected),
"/eims2:ProductDispositionBOD/eims2:DataArea/eims2:ProductDisposition/eims2:ProductDispositionHeader/oa9:Party/oa9:PartyIDs/oa9:ID","/")
The first parameter is the complete xml file. It works perfectly for small xmls, but when the xml is big, the problems appear.
I found that if I use something like PACKAGE(DataArea Comp:ElemDecl ProductDispositionBOD Element:Global:Rejected) instead of the whole xml, the command server doesn't freeze anymore but I'm not being able to get the parameters. The xpath doesn't return anything, and I've checked the path with an "xpath checker", so I know it's ok. I've also tried changing the context, but with no luck so far. Does anyone know what could be happening? I'll attach a sample xml if that helps to see what the problem is.
Thanks in advance
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender