Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

xml import help

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jncraig
Posts:79



09/23/2007 6:15 PM  

John,

 

I'm looking at your XMLimport routine.  For "standard" properties the syntax to add to UserInfo is

 oUserInfo.Profile.Country = GetXmlItemValue(xmlItem, "Country").

 

What is the correct syntax for adding custom properties?  I have a custtom property that I'd also like to import.

 

As always ... thanks for your great help!

jncraig
Posts:79



09/24/2007 5:57 PM  

I managed to figure that one out, but I've got something more complex:

<users></users><firstname>Joe</firstname><special1>SpecialText</special1>
How to I select the special1 tag?
John Mitchell
Posts:3352



09/24/2007 6:03 PM  

Hi Joe,

I reformatted your post above, but I am not sure what you are asking.

Do you want to select it with Xpath? Or just use my generic GetXML function?

jncraig
Posts:79



09/24/2007 7:45 PM  

I should remember to not put tags in messages.  My structure is like this:

 

[users]

           [user]

                    [firstname]Joe[/firstname]

                    [special]

                                     [tag1]special data[/tag1]

                    [/special]

           [/user]

[/users]

 

I'd like to get the two tags out.  The first is compatible with your routine.  How do I get at the second one that's a level deeper?

 

 

Thanks!

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.




ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information