Solution of * doesnt contain ObjectFactory.class or jaxb.index

For some reason while unmarshalling something you get this error
Solution is:
Instead of

javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance("oasis.names.specification.ubl.schema.xsd.invoice_2");
or
JAXBContext context = JAXBContext.newInstance(inv.getClass().getPackage().getName());

Use a notation like this

javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType.class);

Where InvoiceType will be the thing you [...]

How to validate XML with XSD in Java

After initializing xsd with JAXB Binding on Netbeans, you can use a method like this.
Both JAXB binding and schema are same but as far as i see, JAXB unmarshalling doesn’t validate XML, it just transforms it.

package unmarshallertest;

import java.io.*;
import javax.xml.bind.*;
import javax.xml.validation.*;
import oasis.names.specification.ubl.schema.xsd.invoice_2.*;

public class Main {
public static void main(String[] args) {
[...]

Using Xerxes API on Java to find the tag(s) of a given string

Homepage of Xerxes Java API
Javadoc
The task was to search for a tag including a given string

<something> stringtofind </something>

if we are searching for “stringtofind”, “something” is an answer
Here is the code:
Main.java:

package xerxes;

public class Main {

public static void main(String[] args) {
getTagname outp=new getTagname("http://kaansoral.com/deneme.xml","abidin");
[...]