Click here to Skip to main content
15,885,985 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: C# XML Query Website address based on Website name Pin
Tarun.K.S24-Nov-10 7:50
Tarun.K.S24-Nov-10 7:50 
GeneralRe: C# XML Query Website address based on Website name Pin
Wheels01224-Nov-10 7:59
Wheels01224-Nov-10 7:59 
GeneralRe: C# XML Query Website address based on Website name Pin
Tarun.K.S24-Nov-10 18:18
Tarun.K.S24-Nov-10 18:18 
QuestionHow to populate an XmlNamespaceManager Pin
PIEBALDconsult13-Nov-10 5:17
mvePIEBALDconsult13-Nov-10 5:17 
AnswerRe: How to populate an XmlNamespaceManager Pin
Ger Hayden13-Nov-10 7:11
Ger Hayden13-Nov-10 7:11 
AnswerRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult15-Nov-10 2:38
mvePIEBALDconsult15-Nov-10 2:38 
In order to at least have something that works, I now have:

public static System.Xml.XmlNamespaceManager
GetNamespaceManager
(
    System.Xml.XmlDocument Document
)
{
    System.Xml.XmlNamespaceManager result =
        new System.Xml.XmlNamespaceManager ( Document.NameTable ) ;

    System.Xml.XmlNodeList nodes = Document.DocumentElement.SelectNodes ( "//*" , result ) ;

    foreach
    (
        System.Xml.XmlNode nod
    in
        nodes
    )
    {
        foreach ( System.Xml.XmlAttribute att in nod.Attributes )
        {
            if ( att.Prefix == "xmlns" )
            {
                result.AddNamespace ( att.LocalName , att.Value ) ;
            }
        }
    }

    return ( result ) ;
}


Which gets the job done, and I suppose that's what the framework would be doing anyway so it shouldn't be too much slower. But, if the XmlReader builds one anyway, I sure wish I could access it and not have to build my own.
GeneralRe: How to populate an XmlNamespaceManager -- update Pin
lorenkins16-Nov-10 6:45
lorenkins16-Nov-10 6:45 
GeneralRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult16-Nov-10 18:22
mvePIEBALDconsult16-Nov-10 18:22 
QuestionRead XML in C# Pin
ShafiqA3-Oct-10 19:02
ShafiqA3-Oct-10 19:02 
AnswerRe: Read XML in C# Pin
Ger Hayden16-Oct-10 3:06
Ger Hayden16-Oct-10 3:06 
AnswerRe: Read XML in C# Pin
PIEBALDconsult13-Nov-10 4:47
mvePIEBALDconsult13-Nov-10 4:47 
AnswerRe: Read XML in C# Pin
Tarun.K.S19-Nov-10 23:16
Tarun.K.S19-Nov-10 23:16 
GeneralRe: Read XML in C# Pin
Tarun.K.S20-Nov-10 1:54
Tarun.K.S20-Nov-10 1:54 
AnswerRe: Read XML in C# Pin
Yvan Rodrigues13-Dec-10 14:42
professionalYvan Rodrigues13-Dec-10 14:42 
Questionxml Pin
vijiajai25-Sep-10 19:37
vijiajai25-Sep-10 19:37 
QuestionNewDataset in XSD Pin
indian14320-Sep-10 5:05
indian14320-Sep-10 5:05 
AnswerRe: I got the answer for this Pin
indian14320-Sep-10 6:40
indian14320-Sep-10 6:40 
QuestionUpating xml in C# Pin
Sonar8724-Aug-10 22:56
Sonar8724-Aug-10 22:56 
AnswerRe: Upating xml in C# Pin
SeMartens25-Aug-10 4:27
SeMartens25-Aug-10 4:27 
GeneralRe: Upating xml in C# Pin
Sonar8725-Aug-10 10:11
Sonar8725-Aug-10 10:11 
Questionxlst - format number function Pin
Simon_Whale4-Aug-10 4:15
Simon_Whale4-Aug-10 4:15 
AnswerRe: xlst - format number function Pin
Stuart Dootson8-Aug-10 5:43
professionalStuart Dootson8-Aug-10 5:43 
Questionxsl output in existing file Pin
lawrenceinba2-Aug-10 1:17
lawrenceinba2-Aug-10 1:17 
AnswerRe: xsl output in existing file Pin
Stuart Dootson8-Aug-10 5:58
professionalStuart Dootson8-Aug-10 5:58 
Questionxml schema understanding Pin
jainiraj29-Jul-10 19:20
jainiraj29-Jul-10 19:20 

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.