Subject: characters method splits the value of tag
Posted By: ksskumar Post Date: 1/2/2007 8:54:23 AM
Hi ,

i have an issue regarding charaters method spliting the value of Tag.
characters(char[] ch,int start,int length)


In the first chunk  i am getting the splited value of Style tag(DSSKU)
which is actually DSSKU023 but it is returning as DSSKU.

SequenceNumber>1</SequenceNumber><SKUDefinition><Company/><Division/><Season/><SeasonYear/><Style>DSSKU

offset is  2043
len is     5


In the next chunk it is returning 023

023</Style><StyleSuffix/><Color/><ColorSuffix/><SecDimension/><Quality/><SizeRangeCode/><SizeDesc/></SKUDefinition><SubSKUFields><InventoryType>F</InventoryType></SubSKUFields><StoreDistroFields><Shipment/><MerchType/><MerchGroup/><StoreDepartment/><RetlPrice/><InstoreDate/><RequiredQty>20</RequiredQty><StatusCode>00</StatusCode><MiscField1/><MiscField2/><MiscField3/><MiscField4>STORE1</MiscField4><MiscNum1/><MiscNum2/><CustomRecExpansionField/><Function>1</Function><CtnBreakAttrib/><InnerPackQt

Actually i need that in single chunk like DSSKU023

Please help me in this issue.

thanks and regards,
Selvakumar




Reply By: mhkay Reply Date: 1/2/2007 9:59:03 AM
It's part of the specification of the SAX ContentHandler interface that the parser can split the character content over a number of calls. This is designed to minimize the need to move character data between buffers. If you need the data in a single chunk you have to assemble it yourself, processing the buffer when you get to the next start tag, end tag, comment, or PI.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply By: ksskumar Reply Date: 1/2/2007 10:15:01 AM
I got the idea .Thanks for your reply


Go to topic 54254

Return to index page 76
Return to index page 75
Return to index page 74
Return to index page 73
Return to index page 72
Return to index page 71
Return to index page 70
Return to index page 69
Return to index page 68
Return to index page 67