This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML masK confidential number  RSS feed

dileep keely
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Restful service application I get XML data ..which we log it into a log file.
I want to mask the accountNumber before I log the input XML request to a log file.
Also, to log the response xml data ..

Could you please let me know the best way?
Note : We have different Services which we expose to the client

1.I am thinking of using SAX parser and then when I encounter the element <accountNUmber> I wil call the logic which mask the account number.
And return the StringBuffer. (In future may be <depositaccountNumber>, <phonenumber>or <FaxNumber>)..

2. I don't want to go with the Xpath , I use spring Aspect doBefore() where the above logic goes..We expose different services.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!