Bug 309902 - some XML file can not be properly handled by org.eclipse.pde.internal.core.text.XMLEditingModel when one attribute name is sub-string of another
Summary: some XML file can not be properly handled by org.eclipse.pde.internal.core.te...
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2010-04-21 02:27 EDT by kernelv CLA
Modified: 2010-04-21 11:16 EDT (History)
1 user (show)

See Also:


Attachments
Patch to DocumentHandler.java (1.11 KB, patch)
2010-04-21 03:02 EDT, kernelv CLA
curtis.windatt.public: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kernelv CLA 2010-04-21 02:27:18 EDT
Build Identifier: M20100211-1343

I have one line below in XML file
<param order="5" def_value="0" value="1"/>
the attribute value can not be properly parsed.


Reproducible: Always

Steps to Reproduce:
1. write a XML editing model which extends org.eclipse.pde.internal.core.text.XMLEditingModel
2. load a XML file which contains the line below 
 <param order="5" def_value="0" value="1"/>
3. print the attributes of node "param", attribute "value" is not there.
Comment 1 kernelv CLA 2010-04-21 03:02:17 EDT
Created attachment 165529 [details]
Patch to DocumentHandler.java
Comment 2 Curtis Windatt CLA 2010-04-21 11:15:41 EDT
We don't support usage/extension of internal code, however the problem exists and the patch is a good fix.  I have applied the patch to HEAD.