Click here to Skip to main content
15,887,477 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Does anybody know why XmlAttribute has ChildNodes property? Pin
DavidNohejl20-Dec-04 3:46
DavidNohejl20-Dec-04 3:46 
GeneralAsp.net - Xml Pin
Anonymous13-Dec-04 23:54
Anonymous13-Dec-04 23:54 
GeneralRe: Asp.net - Xml Pin
DavidNohejl14-Dec-04 2:15
DavidNohejl14-Dec-04 2:15 
GeneralConverting xsd via xsl to code Pin
mgaerber13-Dec-04 7:36
mgaerber13-Dec-04 7:36 
General.NET support for XSLT 2.0 and XPath 2.0 Pin
Jim Taylor12-Dec-04 23:33
Jim Taylor12-Dec-04 23:33 
GeneralRe: .NET support for XSLT 2.0 and XPath 2.0 Pin
Philip Fitzsimons13-Dec-04 1:30
Philip Fitzsimons13-Dec-04 1:30 
GeneralRe: .NET support for XSLT 2.0 and XPath 2.0 Pin
Jim Taylor13-Dec-04 1:51
Jim Taylor13-Dec-04 1:51 
GeneralRepairing broken XML Pin
Grimolfr11-Dec-04 3:25
Grimolfr11-Dec-04 3:25 
I have a 3rd-party app that generates some "almost XML" files that I need to parse.

It has elements similar to the following:

<color
    name = "Black"
    colorspace = "CMYK"
    cyan = 0.000000
    magenta = 0.000000
    yellow = 0.000000
    black = 100.000000
    />

Notice that the attributes with numeric values aren't quoted as they should be.

There are also a few empty elements that appear as <data   > (the element name and three spaces), although it's an empty element and should be <data />.

These two deviations from true XML are making it impossible for me to simply load the XML into an XMLDocument so that I can easily access the elements I need.

I don't normally work with XML a whole lot. I was wondering if anyone knows of any "simple" methods or an existing library that can correct these errors in the XML as it's read from the file.

The empty element problem I think I can deal with pretty easily with a simple search/replace, as it seems there's only one element in the file that's ever munged this way, but the missing quotes problem is much bigger, as 99% of the numeric attribures are broken, in all elements.

TIA for any help with this.


Grim
(aka Toby)
MCDBA, MCSD, MCP+SB


SELECT * FROM user WHERE clue IS NOT NULL
GO
(0 row(s) affected)

GeneralRe: Repairing broken XML Pin
DavidNohejl11-Dec-04 4:16
DavidNohejl11-Dec-04 4:16 
GeneralRe: Repairing broken XML Pin
Grimolfr11-Dec-04 4:55
Grimolfr11-Dec-04 4:55 
GeneralRe: Repairing broken XML Pin
Philip Fitzsimons13-Dec-04 1:38
Philip Fitzsimons13-Dec-04 1:38 
GeneralXmlDocument Node Types Pin
RB@Emphasys9-Dec-04 10:05
RB@Emphasys9-Dec-04 10:05 
GeneralRe: XmlDocument Node Types Pin
DavidNohejl9-Dec-04 10:38
DavidNohejl9-Dec-04 10:38 
GeneralRe: XmlDocument Node Types Pin
RB@Emphasys9-Dec-04 18:20
RB@Emphasys9-Dec-04 18:20 
GeneralDataGrid to Excel not ASP.Net please! Pin
WDI8-Dec-04 3:08
WDI8-Dec-04 3:08 
GeneralRe: DataGrid to Excel not ASP.Net please! Pin
DavidNohejl8-Dec-04 6:14
DavidNohejl8-Dec-04 6:14 
GeneralRe: DataGrid to Excel not ASP.Net please! Pin
Atal Upadhyay11-Dec-04 0:36
Atal Upadhyay11-Dec-04 0:36 
GeneralRe: DataGrid to Excel not ASP.Net please! Pin
Atal Upadhyay11-Dec-04 0:35
Atal Upadhyay11-Dec-04 0:35 
GeneralSwA MIME attachements and .net Pin
Michael A. Barnhart7-Dec-04 11:59
Michael A. Barnhart7-Dec-04 11:59 
GeneralRe: SwA MIME attachements and .net Pin
Michael A. Barnhart10-Dec-04 14:01
Michael A. Barnhart10-Dec-04 14:01 
QuestionStandard format / encoding for xml? Pin
mittalpa7-Dec-04 7:54
mittalpa7-Dec-04 7:54 
AnswerRe: Standard format / encoding for xml? Pin
DavidNohejl7-Dec-04 9:05
DavidNohejl7-Dec-04 9:05 
GeneralRe: Standard format / encoding for xml? Pin
mittalpa7-Dec-04 10:02
mittalpa7-Dec-04 10:02 
GeneralRe: Standard format / encoding for xml? Pin
DavidNohejl7-Dec-04 11:35
DavidNohejl7-Dec-04 11:35 
GeneralXML in IFRAME Pin
abc8765-Dec-04 20:09
abc8765-Dec-04 20:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.