| Anonymous | Login | Signup for a new account | 02-09-2010 15:17 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0004096 | [Squeak Packages] XML-Yaxo | minor | always | 07-07-06 12:14 | 10-31-07 16:21 | ||||
| Reporter | aplantec | View Status | public | ||||||
| Assigned To | michael | ||||||||
| Priority | normal | Resolution | won't fix | ||||||
| Status | closed | ||||||||
| Summary | 0004096: With XPath package, XMLNode>>parent instance variable is always nil | ||||||||
| Description |
XMLNode>>parent instance variable is added by XPath package. Its value is valid only for XMLStringNode instance but all other nodes (XMLElement instances) have parent == nil. test : XMLDOMParser addressBookXMLWithDTD explore a trivial fix is included |
||||||||
| Additional Information |
Here is the fix, "newElement parent: self top" is added after newElement creation XMLDOMParser>>startElement: localName namespaceURI: namespaceUri namespace: namespace attributeList: attributeList | newElement | "newElement _ namespace = self defaultNamespace ifTrue: [XMLElement named: localName namespace: nil uri: nil attributes: attributeList] ifFalse: [XMLElement named: localName namespace: namespace uri: namespaceUri attributes: attributeList]." newElement _ XMLElement named: localName namespace: namespace uri: namespaceUri attributes: attributeList. newElement parent: self top. " parent assignment fix here " self incremental ifFalse: [self stack isEmpty ifFalse: [self top addElement: newElement]]. self push: newElement |
||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
60 total queries executed. 38 unique queries executed. |