Ok this seems like a silly question, but how do you access the "name" attribute in the language node?
<?xml version="1.0" encoding="utf-8" standalone="yes"?><languages> <language name="English" id="en"> <document> <download>Download:</download> </document>
I know you can do Translate("/document") OR <asp:Literal runat="server" Text="<%$ Resources: EPiServer, document %>" />, but how would I get just the attribute, instead of a child node? Seems like it would be something simple.
You have the GetLanguages method that returns a collection of the languages, but not sure if that is what you want.. You can just parse the XML document with Linq to XML or XmlDocument etc.
I just created a new child node called <languagetitle>United States</languagetitle> instead. It was easier, and I couldn't find a solution to reading the name attribute.