A method and apparatus for printing accessed data over a network using a
virtual machine applet accessed by a printer. To-be-printed data accessed
through a network or setup command data for setting up a printer
environment received from a user is transformed into to-be-printed
extensible markup language (XML) data or setup command XML data,
respectively. The to-be-printed XML data or the setup command XML data is
transmitted to the printer. The to-be-printed XML data or the setup
command XML data is interpreted via the virtual machine applet to execute
printing or to set up the printer. Accordingly, data written in various
kinds of languages on the Internet can be transmitted to and printed by a
printer without installing a printer driver in a computer or a mobile
communication apparatus like a PDA. Also, a desired printer setup by a
user can be achieved without a printer driver.