Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Conversion of xml file with simple functions

    I have to apply some basic functions on the xml data. E.g For the given below xml

    <Person>
    <Name>Damien</Name>
    <Age>32</Age>
    <Hobby>Dancing</Hobby>
    </Person>

    I have to convert it as:

    <Data>
    <Result>Damien-32-Dancing</Result>
    </Data>
    Can you help with some simple user interface with drag and drop functionality, which will let me modify the field values and send it to the resultant field? Please let me know.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    You'll need to answer a couple questions first:

    1. What framework do you envision this drag & drop UI living in?
    2. What programming or scripting languages are you comfortable working with?
    3. How are you going to get the original data into your program?
    4. How are you going to get the final data out of your program and on to its destination?


    The first two are really important to figure out. HTML5 has drag & drop events, but there's a learning curve. (For that matter, anything to do with drag & drop has a learning curve.)

    For that matter, I have to ask: why do you need the user interface? Why not a command-line program? This sounds like simple text editing.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alex,

    It should be in .net framework and the scripting language should be C#.
    The reason why i am more reluctant to go for drag-drop functionality is because i dont want to use any conversion language or set of rules, just use some common sense and apply those functions and get it done.

  • #4
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    *sigh* When it comes to sense, what's common to you or me is very uncommon to a computer. That's why "getting it done" as you put it takes some specialized knowledge.

    Unfortunately, I won't be able to help you with this one. I don't know any .NET at all, nor have I looked at C#. Thus, I wouldn't know where to start, except possibly "int main() {}".

    There are other members here on CF who do know .NET and C#. If you want, I can transfer this thread over to the .NET forum, or we can leave it here.

    I strongly advise you to consider forgoing the GUI and allowing yourself to work with a command-line interface. I recently challenged an "Intro to Unix" course successfully for credit at the local community college, but even I learned that there are some pretty good command-line tools for manipulating text through a shell terminal. A scripting language like Python or Perl, or even a shell script might get you exactly what you need without the complexity of building the GUI. Even C# and .NET can compile command-line interfaces for you with ease.
    Last edited by Alex Vincent; 01-09-2014 at 04:44 PM.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •