I'm trying to update my code removing deprecated methods "newAdvertisement".
XMLDocument DOC =(XMLDocument)
Advertisement adv = AdvertisementFactory.newAdvertisement(DOC);
But the code gave me an error and didn't read the pipe.
Can you say me where I made a mistrake, please???
Thank you very much.