Click here to Skip to main content
14,925,899 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: C# XML Query Website address based on Website name Pin
Tarun.K.S24-Nov-10 7:30
MemberTarun.K.S24-Nov-10 7:30 
GeneralRe: C# XML Query Website address based on Website name Pin
Wheels01224-Nov-10 7:41
MemberWheels01224-Nov-10 7:41 
GeneralRe: C# XML Query Website address based on Website name Pin
Tarun.K.S24-Nov-10 7:50
MemberTarun.K.S24-Nov-10 7:50 
GeneralRe: C# XML Query Website address based on Website name Pin
Wheels01224-Nov-10 7:59
MemberWheels01224-Nov-10 7:59 
GeneralRe: C# XML Query Website address based on Website name Pin
Tarun.K.S24-Nov-10 18:18
MemberTarun.K.S24-Nov-10 18:18 
QuestionHow to populate an XmlNamespaceManager Pin
PIEBALDconsult13-Nov-10 5:17
professionalPIEBALDconsult13-Nov-10 5:17 
AnswerRe: How to populate an XmlNamespaceManager Pin
Ger Hayden13-Nov-10 7:11
MemberGer Hayden13-Nov-10 7:11 
AnswerRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult15-Nov-10 2:38
professionalPIEBALDconsult15-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
Memberlorenkins16-Nov-10 6:45 
GeneralRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult16-Nov-10 18:22
professionalPIEBALDconsult16-Nov-10 18:22 
QuestionRead XML in C# Pin
ShafiqA3-Oct-10 19:02
MemberShafiqA3-Oct-10 19:02 
AnswerRe: Read XML in C# Pin
Ger Hayden16-Oct-10 3:06
MemberGer Hayden16-Oct-10 3:06 
AnswerRe: Read XML in C# Pin
PIEBALDconsult13-Nov-10 4:47
professionalPIEBALDconsult13-Nov-10 4:47 
AnswerRe: Read XML in C# Pin
Tarun.K.S19-Nov-10 23:16
MemberTarun.K.S19-Nov-10 23:16 
GeneralRe: Read XML in C# Pin
Tarun.K.S20-Nov-10 1:54
MemberTarun.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
Membervijiajai25-Sep-10 19:37 
QuestionNewDataset in XSD Pin
indian14320-Sep-10 5:05
Memberindian14320-Sep-10 5:05 
AnswerRe: I got the answer for this Pin
indian14320-Sep-10 6:40
Memberindian14320-Sep-10 6:40 
QuestionUpating xml in C# Pin
Sonar8724-Aug-10 22:56
MemberSonar8724-Aug-10 22:56 
AnswerRe: Upating xml in C# Pin
SeMartens25-Aug-10 4:27
MemberSeMartens25-Aug-10 4:27 
GeneralRe: Upating xml in C# Pin
Sonar8725-Aug-10 10:11
MemberSonar8725-Aug-10 10:11 
Questionxlst - format number function Pin
Simon_Whale4-Aug-10 4:15
professionalSimon_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
Memberlawrenceinba2-Aug-10 1:17 

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.