easy way of replacing the text in xml with java or any possible programming language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • farnooshi
    New Member
    • Aug 2013
    • 1

    easy way of replacing the text in xml with java or any possible programming language

    Hi fellows ,
    i have an xml file that it contain of many text that has to transfer to tags so i can divide them into tables . so to make it short i need to change some text in XML file.
    for example i have to replace
    <strong>Categor y:</strong> with< Category > <strong>Product :</strong> with </Category><Produ ct> <strong>Brand :</strong> with </Product><Brand>

    i am not a programmer i know a bit of java and i need to do the same thing for 400 pages so i was wondering if i can write a function which can replace those string to desired text .
    if some one can help that would be awesomeee
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi farnoshi and welcome to bytes.com!

    The problem you describe sounds like something that can quite easily be solved with a SAX library. SAX is an API for processing XML files which doesn't need to read the whole file to start working. If you search for "java SAX" you should find plenty of tutorials.

    Comment

    • kamlesh21630
      New Member
      • Nov 2013
      • 16

      #3
      It is so simple to replace these text using epsilon editor.
      If you know epsilon editor than only i can help you or else learn about epsilon editor from my blog.

      Blogger ist ein Veröffentlichungs-Tool von Google, mit dem du ganz einfach deine Gedanken der Welt mitteilen kannst. Mit Blogger kannst du problemlos Texte, Fotos und Videos in deinem persönlichen Blog oder deinem Team-Blog veröffentlichen.

      Comment

      Working...